Package io.servicetalk.http.api
Class HttpHeaderNames
java.lang.Object
io.servicetalk.http.api.HttpHeaderNames
Common request header names and
response header names.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CharSequence
"accept"
static final CharSequence
"accept-charset"
static final CharSequence
"accept-encoding"
static final CharSequence
"accept-language"
static final CharSequence
"accept-patch"
static final CharSequence
"accept-ranges"
static final CharSequence
"access-control-allow-credentials"
static final CharSequence
"access-control-allow-headers"
static final CharSequence
"access-control-allow-methods"
static final CharSequence
"access-control-allow-origin"
static final CharSequence
"access-control-expose-headers"
static final CharSequence
"access-control-max-age"
static final CharSequence
"access-control-request-headers"
static final CharSequence
"access-control-request-method"
static final CharSequence
"age"
static final CharSequence
"allow"
static final CharSequence
"authorization"
static final CharSequence
"cache-control"
static final CharSequence
"connection"
static final CharSequence
"content-base"
static final CharSequence
"content-disposition"
static final CharSequence
"content-encoding"
static final CharSequence
"content-language"
static final CharSequence
"content-length"
static final CharSequence
"content-location"
static final CharSequence
"content-md5"
static final CharSequence
"content-range"
static final CharSequence
"content-security-policy"
static final CharSequence
"content-transfer-encoding"
static final CharSequence
"content-type"
static final CharSequence
"cookie"
static final CharSequence
"date"
static final CharSequence
"etag"
static final CharSequence
"expect"
static final CharSequence
"expires"
static final CharSequence
"forwarded"
is a header field that contains a list of parameter-identifier pairs that disclose information that is altered or lost when a proxy is involved in the path of the request.static final CharSequence
"from"
static final CharSequence
"host"
static final CharSequence
"if-match"
static final CharSequence
"if-modified-since"
static final CharSequence
"if-none-match"
static final CharSequence
"if-range"
static final CharSequence
"if-unmodified-since"
static final CharSequence
"last-modified"
static final CharSequence
"location"
static final CharSequence
"max-forwards"
static final CharSequence
"origin"
static final CharSequence
"pragma"
static final CharSequence
"proxy-authenticate"
static final CharSequence
"proxy-authorization"
static final CharSequence
"range"
static final CharSequence
"referer"
static final CharSequence
"retry-after"
static final CharSequence
"sec-websocket-accept"
static final CharSequence
"sec-websocket-protocol"
static final CharSequence
"sec-websocket-key"
static final CharSequence
"sec-websocket-key1"
static final CharSequence
"sec-websocket-key2"
static final CharSequence
"sec-websocket-location"
static final CharSequence
"sec-websocket-origin"
static final CharSequence
"sec-websocket-protocol"
static final CharSequence
"sec-websocket-version"
static final CharSequence
"server"
static final CharSequence
"set-cookie"
static final CharSequence
"set-cookie2"
static final CharSequence
"te"
static final CharSequence
"trailer"
static final CharSequence
"transfer-encoding"
static final CharSequence
"upgrade"
static final CharSequence
"user-agent"
static final CharSequence
"vary"
static final CharSequence
"via"
static final CharSequence
"warning"
static final CharSequence
"websocket-location"
static final CharSequence
"websocket-origin"
static final CharSequence
"websocket-protocol"
static final CharSequence
"www-authenticate"
static final CharSequence
"x-forwarded-for"
(XFF) header is a de-facto standard header for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or a load balancer.static final CharSequence
"x-forwarded-host"
(XFH) header is a de-facto standard header for identifying the original host requested by the client in thehost
HTTP request header.static final CharSequence
"x-forwarded-proto"
(XFP) header is a de-facto standard header for identifying the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.static final CharSequence
"x-requested-with"
is not a standard, but wildly used by most JavaScript frameworks header to identify Ajax requests. -
Method Summary
-
Field Details
-
ACCEPT
"accept"
- See Also:
-
ACCEPT_CHARSET
"accept-charset"
- See Also:
-
ACCEPT_ENCODING
"accept-encoding"
- See Also:
-
ACCEPT_LANGUAGE
"accept-language"
- See Also:
-
ACCEPT_RANGES
"accept-ranges"
- See Also:
-
ACCEPT_PATCH
"accept-patch"
- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
"access-control-allow-credentials"
-
ACCESS_CONTROL_ALLOW_HEADERS
"access-control-allow-headers"
-
ACCESS_CONTROL_ALLOW_METHODS
"access-control-allow-methods"
-
ACCESS_CONTROL_ALLOW_ORIGIN
"access-control-allow-origin"
-
ACCESS_CONTROL_EXPOSE_HEADERS
"access-control-expose-headers"
-
ACCESS_CONTROL_MAX_AGE
"access-control-max-age"
-
ACCESS_CONTROL_REQUEST_HEADERS
"access-control-request-headers"
-
ACCESS_CONTROL_REQUEST_METHOD
"access-control-request-method"
-
AGE
"age"
- See Also:
-
ALLOW
"allow"
- See Also:
-
AUTHORIZATION
"authorization"
- See Also:
-
CACHE_CONTROL
"cache-control"
- See Also:
-
CONNECTION
"connection"
- See Also:
-
CONTENT_BASE
"content-base"
- See Also:
-
CONTENT_ENCODING
"content-encoding"
- See Also:
-
CONTENT_LANGUAGE
"content-language"
- See Also:
-
CONTENT_LENGTH
"content-length"
- See Also:
-
CONTENT_LOCATION
"content-location"
- See Also:
-
CONTENT_TRANSFER_ENCODING
"content-transfer-encoding"
- See Also:
-
CONTENT_DISPOSITION
"content-disposition"
- See Also:
-
CONTENT_MD5
"content-md5"
- See Also:
-
CONTENT_RANGE
"content-range"
- See Also:
-
CONTENT_SECURITY_POLICY
"content-security-policy"
-
CONTENT_TYPE
"content-type"
- See Also:
-
COOKIE
"cookie"
- See Also:
-
DATE
"date"
- See Also:
-
ETAG
"etag"
- See Also:
-
EXPECT
"expect"
- See Also:
-
EXPIRES
"expires"
- See Also:
-
FORWARDED
"forwarded"
is a header field that contains a list of parameter-identifier pairs that disclose information that is altered or lost when a proxy is involved in the path of the request.The alternative and de-facto standard versions of this header are the
"x-forwarded-for"
,"x-forwarded-host"
and"x-forwarded-proto"
headers.- See Also:
-
FROM
"from"
- See Also:
-
HOST
"host"
- See Also:
-
IF_MATCH
"if-match"
- See Also:
-
IF_MODIFIED_SINCE
"if-modified-since"
- See Also:
-
IF_NONE_MATCH
"if-none-match"
- See Also:
-
IF_RANGE
"if-range"
- See Also:
-
IF_UNMODIFIED_SINCE
"if-unmodified-since"
- See Also:
-
LAST_MODIFIED
"last-modified"
- See Also:
-
LOCATION
"location"
- See Also:
-
MAX_FORWARDS
"max-forwards"
- See Also:
-
ORIGIN
"origin"
- See Also:
-
PRAGMA
"pragma"
- See Also:
-
PROXY_AUTHENTICATE
"proxy-authenticate"
- See Also:
-
PROXY_AUTHORIZATION
"proxy-authorization"
- See Also:
-
RANGE
"range"
- See Also:
-
REFERER
"referer"
- See Also:
-
RETRY_AFTER
"retry-after"
- See Also:
-
SEC_WEBSOCKET_KEY1
"sec-websocket-key1"
-
SEC_WEBSOCKET_KEY2
"sec-websocket-key2"
-
SEC_WEBSOCKET_LOCATION
"sec-websocket-location"
-
SEC_WEBSOCKET_ORIGIN
"sec-websocket-origin"
-
SEC_WEBSOCKET_PROTOCOL
"sec-websocket-protocol"
- See Also:
-
SEC_WEBSOCKET_VERSION
"sec-websocket-version"
- See Also:
-
SEC_WEBSOCKET_KEY
"sec-websocket-key"
- See Also:
-
SEC_WEBSOCKET_ACCEPT
"sec-websocket-accept"
- See Also:
-
SEC_WEBSOCKET_EXTENSIONS
"sec-websocket-protocol"
- See Also:
-
SERVER
"server"
- See Also:
-
SET_COOKIE
"set-cookie"
- See Also:
-
SET_COOKIE2
"set-cookie2"
- See Also:
-
TE
"te"
- See Also:
-
TRAILER
"trailer"
- See Also:
-
TRANSFER_ENCODING
"transfer-encoding"
- See Also:
-
UPGRADE
"upgrade"
- See Also:
-
USER_AGENT
"user-agent"
- See Also:
-
VARY
"vary"
- See Also:
-
VIA
"via"
- See Also:
-
WARNING
"warning"
- See Also:
-
WEBSOCKET_LOCATION
"websocket-location"
-
WEBSOCKET_ORIGIN
"websocket-origin"
-
WEBSOCKET_PROTOCOL
"websocket-protocol"
-
WWW_AUTHENTICATE
"www-authenticate"
- See Also:
-
X_FORWARDED_FOR
"x-forwarded-for"
(XFF) header is a de-facto standard header for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or a load balancer.A standardized version of this header is the HTTP
"forwarded"
header.- See Also:
-
X_FORWARDED_HOST
"x-forwarded-host"
(XFH) header is a de-facto standard header for identifying the original host requested by the client in thehost
HTTP request header.A standardized version of this header is the HTTP
"forwarded"
header.- See Also:
-
X_FORWARDED_PROTO
"x-forwarded-proto"
(XFP) header is a de-facto standard header for identifying the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.A standardized version of this header is the HTTP
"forwarded"
header.- See Also:
-
X_REQUESTED_WITH
"x-requested-with"
is not a standard, but wildly used by most JavaScript frameworks header to identify Ajax requests. Usually frameworks send this header with value ofXMLHttpRequest
.
-