Package org.eclipse.jetty.http
Enum HttpHeader
- All Implemented Interfaces:
Serializable
,Comparable<HttpHeader>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequest Fields.Response Fields.Entity Fields.HTTP2 Fields.General Fields.Other Fields.WebSocket Fields. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
byte[]
getBytes()
byte[]
boolean
boolean
isPseudo()
toBuffer()
toString()
static HttpHeader
Returns the enum constant of this type with the specified name.static HttpHeader[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONNECTION
General Fields. -
CACHE_CONTROL
-
DATE
-
PRAGMA
-
PROXY_CONNECTION
-
TRAILER
-
TRANSFER_ENCODING
-
UPGRADE
-
VIA
-
WARNING
-
NEGOTIATE
-
ALLOW
Entity Fields. -
CONTENT_ENCODING
-
CONTENT_LANGUAGE
-
CONTENT_LENGTH
-
CONTENT_LOCATION
-
CONTENT_MD5
-
CONTENT_RANGE
-
CONTENT_TYPE
-
EXPIRES
-
LAST_MODIFIED
-
ACCEPT
Request Fields. -
ACCEPT_CHARSET
-
ACCEPT_ENCODING
-
ACCEPT_LANGUAGE
-
AUTHORIZATION
-
EXPECT
-
FORWARDED
-
FROM
-
HOST
-
IF_MATCH
-
IF_MODIFIED_SINCE
-
IF_NONE_MATCH
-
IF_RANGE
-
IF_UNMODIFIED_SINCE
-
KEEP_ALIVE
-
MAX_FORWARDS
-
PROXY_AUTHORIZATION
-
RANGE
-
REQUEST_RANGE
-
REFERER
-
TE
-
USER_AGENT
-
X_FORWARDED_FOR
-
X_FORWARDED_PORT
-
X_FORWARDED_PROTO
-
X_FORWARDED_SERVER
-
X_FORWARDED_HOST
-
ACCEPT_RANGES
Response Fields. -
AGE
-
ALT_SVC
-
ETAG
-
LINK
-
LOCATION
-
PROXY_AUTHENTICATE
-
RETRY_AFTER
-
SERVER
-
SERVLET_ENGINE
-
VARY
-
WWW_AUTHENTICATE
-
ORIGIN
WebSocket Fields. -
SEC_WEBSOCKET_KEY
-
SEC_WEBSOCKET_VERSION
-
SEC_WEBSOCKET_EXTENSIONS
-
SEC_WEBSOCKET_SUBPROTOCOL
-
SEC_WEBSOCKET_ACCEPT
-
COOKIE
Other Fields. -
SET_COOKIE
-
SET_COOKIE2
-
MIME_VERSION
-
IDENTITY
-
X_POWERED_BY
-
HTTP2_SETTINGS
-
STRICT_TRANSPORT_SECURITY
-
C_METHOD
HTTP2 Fields. -
C_SCHEME
-
C_AUTHORITY
-
C_PATH
-
C_STATUS
-
C_PROTOCOL
-
-
Field Details
-
CACHE
-
-
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
-
lowerCaseName
-
toBuffer
-
getBytes
public byte[] getBytes() -
getBytesColonSpace
public byte[] getBytesColonSpace() -
is
-
isPseudo
public boolean isPseudo()- Returns:
- True if the header is a HTTP2 Pseudo header (eg ':path')
-
asString
-
toString
- Overrides:
toString
in classEnum<HttpHeader>
-