Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Enum HttpConversionUtil.ExtensionHeaderNames
- java.lang.Object
-
- java.lang.Enum<HttpConversionUtil.ExtensionHeaderNames>
-
- io.netty5.handler.codec.http2.HttpConversionUtil.ExtensionHeaderNames
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpConversionUtil.ExtensionHeaderNames>
- Enclosing class:
- HttpConversionUtil
public static enum HttpConversionUtil.ExtensionHeaderNames extends Enum<HttpConversionUtil.ExtensionHeaderNames>
Provides the HTTP header extensions used to carry HTTP/2 information in HTTP objects
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PATH
HTTP extension header which will identify the path pseudo header from the HTTP/2 event(s) responsible for generating anHttpObject
SCHEME
HTTP extension header which will identify the scheme pseudo header from the HTTP/2 event(s) responsible for generating anHttpObject
STREAM_DEPENDENCY_ID
HTTP extension header which will identify the stream id which this stream is dependent on.STREAM_ID
HTTP extension header which will identify the stream id from the HTTP/2 event(s) responsible for generating anHttpObject
STREAM_PROMISE_ID
HTTP extension header which will identify the stream id used to create this stream in an HTTP/2 push promise frameSTREAM_WEIGHT
HTTP extension header which will identify the weight (if non-default and the priority is not on the default stream) of the associated HTTP/2 stream responsible responsible for generating anHttpObject
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsciiString
text()
static HttpConversionUtil.ExtensionHeaderNames
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpConversionUtil.ExtensionHeaderNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAM_ID
public static final HttpConversionUtil.ExtensionHeaderNames STREAM_ID
HTTP extension header which will identify the stream id from the HTTP/2 event(s) responsible for generating anHttpObject
"x-http2-stream-id"
-
SCHEME
public static final HttpConversionUtil.ExtensionHeaderNames SCHEME
HTTP extension header which will identify the scheme pseudo header from the HTTP/2 event(s) responsible for generating anHttpObject
"x-http2-scheme"
-
PATH
public static final HttpConversionUtil.ExtensionHeaderNames PATH
HTTP extension header which will identify the path pseudo header from the HTTP/2 event(s) responsible for generating anHttpObject
"x-http2-path"
-
STREAM_PROMISE_ID
public static final HttpConversionUtil.ExtensionHeaderNames STREAM_PROMISE_ID
HTTP extension header which will identify the stream id used to create this stream in an HTTP/2 push promise frame"x-http2-stream-promise-id"
-
STREAM_DEPENDENCY_ID
public static final HttpConversionUtil.ExtensionHeaderNames STREAM_DEPENDENCY_ID
HTTP extension header which will identify the stream id which this stream is dependent on. This stream will be a child node of the stream id associated with this header value."x-http2-stream-dependency-id"
-
STREAM_WEIGHT
public static final HttpConversionUtil.ExtensionHeaderNames STREAM_WEIGHT
HTTP extension header which will identify the weight (if non-default and the priority is not on the default stream) of the associated HTTP/2 stream responsible responsible for generating anHttpObject
"x-http2-stream-weight"
-
-
Method Detail
-
values
public static HttpConversionUtil.ExtensionHeaderNames[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpConversionUtil.ExtensionHeaderNames c : HttpConversionUtil.ExtensionHeaderNames.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpConversionUtil.ExtensionHeaderNames valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
text
public AsciiString text()
-
-