public static enum Http2Headers.PseudoHeaderName extends Enum<Http2Headers.PseudoHeaderName>
Enum Constant and Description |
---|
AUTHORITY
:authority . |
METHOD
:method . |
PATH
:path . |
PROTOCOL
:protocol , as defined in RFC 8441,
Bootstrapping WebSockets with HTTP/2. |
SCHEME
:scheme . |
STATUS
:status . |
Modifier and Type | Method and Description |
---|---|
static Http2Headers.PseudoHeaderName |
getPseudoHeader(AsciiString header)
Returns the
Http2Headers.PseudoHeaderName corresponding to the specified header name. |
static Http2Headers.PseudoHeaderName |
getPseudoHeader(CharSequence header)
Returns the
Http2Headers.PseudoHeaderName corresponding to the specified header name. |
static boolean |
hasPseudoHeaderFormat(CharSequence headerName)
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)
|
static boolean |
isPseudoHeader(AsciiString header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
|
static boolean |
isPseudoHeader(CharSequence header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
|
static boolean |
isPseudoHeader(String header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
|
boolean |
isRequestOnly()
Indicates whether the pseudo-header is to be used in a request context.
|
AsciiString |
value() |
static Http2Headers.PseudoHeaderName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http2Headers.PseudoHeaderName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http2Headers.PseudoHeaderName METHOD
:method
.public static final Http2Headers.PseudoHeaderName SCHEME
:scheme
.public static final Http2Headers.PseudoHeaderName AUTHORITY
:authority
.public static final Http2Headers.PseudoHeaderName PATH
:path
.public static final Http2Headers.PseudoHeaderName STATUS
:status
.public static final Http2Headers.PseudoHeaderName PROTOCOL
:protocol
, as defined in RFC 8441,
Bootstrapping WebSockets with HTTP/2.public static Http2Headers.PseudoHeaderName[] values()
for (Http2Headers.PseudoHeaderName c : Http2Headers.PseudoHeaderName.values()) System.out.println(c);
public static Http2Headers.PseudoHeaderName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic AsciiString value()
public static boolean hasPseudoHeaderFormat(CharSequence headerName)
true
if the header follow the pseudo-header formatpublic static boolean isPseudoHeader(CharSequence header)
public static boolean isPseudoHeader(AsciiString header)
public static boolean isPseudoHeader(String header)
public static Http2Headers.PseudoHeaderName getPseudoHeader(CharSequence header)
Http2Headers.PseudoHeaderName
corresponding to the specified header name.Http2Headers.PseudoHeaderName
if any, null
otherwise.public static Http2Headers.PseudoHeaderName getPseudoHeader(AsciiString header)
Http2Headers.PseudoHeaderName
corresponding to the specified header name.Http2Headers.PseudoHeaderName
if any, null
otherwise.public boolean isRequestOnly()
true
if the pseudo-header is to be used in a request contextCopyright © 2008–2024 The Netty Project. All rights reserved.