Enum Http3Headers.PseudoHeaderName
java.lang.Object
java.lang.Enum<Http3Headers.PseudoHeaderName>
io.netty.handler.codec.http3.Http3Headers.PseudoHeaderName
- All Implemented Interfaces:
Serializable, Comparable<Http3Headers.PseudoHeaderName>
- Enclosing interface:
Http3Headers
HTTP/2 (and HTTP/3) pseudo-headers names.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetFlag()static @Nullable Http3Headers.PseudoHeaderNamegetPseudoHeader(CharSequence name) Returns theHttp3Headers.PseudoHeaderNamecorresponding to the specified header name.static booleanhasPseudoHeaderFormat(CharSequence headerName) Indicates whether the specified header follows the pseudo-header format (begins with ':' character)static booleanisPseudoHeader(CharSequence name) Indicates whether the given header name is a valid HTTP/3 pseudo header.booleanIndicates whether the pseudo-header is to be used in a request context.value()Returns the enum constant of this type with the specified name.static Http3Headers.PseudoHeaderName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METHOD
:method. -
SCHEME
:scheme. -
AUTHORITY
:authority. -
PATH
:path. -
STATUS
:status. -
PROTOCOL
:protocol.Used for Extended CONNECT requests as defined in RFC 9220. This pseudo-header is only valid for CONNECT requests and indicates the desired protocol for the connection (e.g., "webtransport", "websocket").
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
value
-
hasPseudoHeaderFormat
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)- Parameters:
headerName- the header name to check.- Returns:
trueif the header follow the pseudo-header format
-
isPseudoHeader
Indicates whether the given header name is a valid HTTP/3 pseudo header.- Parameters:
name- the header name.- Returns:
trueif the given header name is a valid HTTP/3 pseudo header,falseotherwise.
-
getPseudoHeader
Returns theHttp3Headers.PseudoHeaderNamecorresponding to the specified header name.- Parameters:
name- the header name.- Returns:
- corresponding
Http3Headers.PseudoHeaderNameif any,nullotherwise.
-
isRequestOnly
public boolean isRequestOnly()Indicates whether the pseudo-header is to be used in a request context.- Returns:
trueif the pseudo-header is to be used in a request context
-
getFlag
public int getFlag()
-