• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 package software.amazon.awssdk.crt.http;
7 
8 /**
9  * Type of header block.  Syncs with the native enum aws_http_header_block
10  */
11 public enum HttpHeaderBlock {
12 
13     MAIN(0),
14 
15     INFORMATIONAL(1),
16 
17     TRAILING(2);
18 
19     private int blockType;
20 
HttpHeaderBlock(int value)21     HttpHeaderBlock(int value) {
22         blockType = value;
23     }
24 
25     /**
26      * @return the native enum value associated with this Java enum value
27      */
getValue()28     public int getValue() {
29         return blockType;
30     }
31 }
32