Package com.linecorp.armeria.common
Class HttpHeaderNames
java.lang.Object
com.linecorp.armeria.common.HttpHeaderNames
public final class HttpHeaderNames extends Object
Contains constant definitions for the HTTP header field names.
All header names in this class are defined in lowercase to support HTTP/2 requirements while also not violating HTTP/1 requirements.
-
Field Summary
Fields Modifier and Type Field Description static AsciiString
ACCEPT
The HTTP"Accept"
header field name.static AsciiString
ACCEPT_CHARSET
The HTTP"Accept-Charset"
header field name.static AsciiString
ACCEPT_ENCODING
The HTTP"Accept-Encoding"
header field name.static AsciiString
ACCEPT_LANGUAGE
The HTTP"Accept-Language"
header field name.static AsciiString
ACCEPT_PATCH
The HTTP"Accept-Patch"
header field name.static AsciiString
ACCEPT_RANGES
The HTTP"Accept-Ranges"
header field name.static AsciiString
ACCESS_CONTROL_ALLOW_CREDENTIALS
The HTTP"Access-Control-Allow-Credentials"
header field name.static AsciiString
ACCESS_CONTROL_ALLOW_HEADERS
The HTTP"Access-Control-Allow-Headers"
header field name.static AsciiString
ACCESS_CONTROL_ALLOW_METHODS
The HTTP"Access-Control-Allow-Methods"
header field name.static AsciiString
ACCESS_CONTROL_ALLOW_ORIGIN
The HTTP"Access-Control-Allow-Origin"
header field name.static AsciiString
ACCESS_CONTROL_EXPOSE_HEADERS
The HTTP"Access-Control-Expose-Headers"
header field name.static AsciiString
ACCESS_CONTROL_MAX_AGE
The HTTP"Access-Control-Max-Age"
header field name.static AsciiString
ACCESS_CONTROL_REQUEST_HEADERS
The HTTP"Access-Control-Request-Headers"
header field name.static AsciiString
ACCESS_CONTROL_REQUEST_METHOD
The HTTP"Access-Control-Request-Method"
header field name.static AsciiString
AGE
The HTTP"Age"
header field name.static AsciiString
ALLOW
The HTTP"Allow"
header field name.static AsciiString
AUTHORITY
The HTTP":authority"
pseudo header field name.static AsciiString
AUTHORIZATION
The HTTP"Authorization"
header field name.static AsciiString
CACHE_CONTROL
The HTTP"Cache-Control"
header field name.static AsciiString
CONNECTION
The HTTP"Connection"
header field name.static AsciiString
CONTENT_BASE
The HTTP"Content-Base"
header field name.static AsciiString
CONTENT_DISPOSITION
The HTTP"Content-Disposition"
header field name.static AsciiString
CONTENT_ENCODING
The HTTP"Content-Encoding"
header field name.static AsciiString
CONTENT_LANGUAGE
The HTTP"Content-Language"
header field name.static AsciiString
CONTENT_LENGTH
The HTTP"Content-Length"
header field name.static AsciiString
CONTENT_LOCATION
The HTTP"Content-Location"
header field name.static AsciiString
CONTENT_MD5
The HTTP"Content-MD5"
header field name.static AsciiString
CONTENT_RANGE
The HTTP"Content-Range"
header field name.static AsciiString
CONTENT_SECURITY_POLICY
The HTTPContent-Security-Policy
header field name.static AsciiString
CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTP"Content-Security-Policy-Report-Only"
header field name.static AsciiString
CONTENT_TYPE
The HTTP"Content-Type"
header field name.static AsciiString
COOKIE
The HTTP"Cookie"
header field name.static AsciiString
DATE
The HTTP"Date"
header field name.static AsciiString
DNT
The HTTP"DNT"
header field name.static AsciiString
EARLY_DATA
The HTTP"Early-Data"
header field name.static AsciiString
ETAG
The HTTP"ETag"
header field name.static AsciiString
EXPECT
The HTTP"Expect"
header field name.static AsciiString
EXPIRES
The HTTP"Expires"
header field name.static AsciiString
FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTP"Follow-Only-When-Prerender-Shown"
header field name.static AsciiString
FORWARDED
The HTTP"Forwarded"
header field name.static AsciiString
FROM
The HTTP"From"
header field name.static AsciiString
HOST
The HTTP"Host"
header field name.static AsciiString
HTTP2_SETTINGS
The HTTP"HTTP2-Settings"
header field name.static AsciiString
IF_MATCH
The HTTP"If-Match"
header field name.static AsciiString
IF_MODIFIED_SINCE
The HTTP"If-Modified-Since"
header field name.static AsciiString
IF_NONE_MATCH
The HTTP"If-None-Match"
header field name.static AsciiString
IF_RANGE
The HTTP"If-Range"
header field name.static AsciiString
IF_UNMODIFIED_SINCE
The HTTP"If-Unmodified-Since"
header field name.static AsciiString
LAST_EVENT_ID
The HTTP"Last-Event-ID"
header field name.static AsciiString
LAST_MODIFIED
The HTTP"Last-Modified"
header field name.static AsciiString
LINK
The HTTP"Link"
header field name.static AsciiString
LOCATION
The HTTP"Location"
header field name.static AsciiString
MAX_FORWARDS
The HTTP"Max-Forwards"
header field name.static AsciiString
METHOD
The HTTP":method"
pseudo header field name.static AsciiString
ORIGIN
The HTTP"Origin"
header field name.static AsciiString
ORIGIN_TRIAL
The HTTP"Origin-Trial"
header field name.static AsciiString
P3P
The HTTP"P3P"
header field name.static AsciiString
PATH
The HTTP":path"
pseudo header field name.static AsciiString
PING_FROM
The HTTP"Ping-From"
header field name.static AsciiString
PING_TO
The HTTP"Ping-To"
header field name.static AsciiString
PRAGMA
The HTTP"Pragma"
header field name.static AsciiString
PREFER
The HTTP"Prefer"
header field name.static AsciiString
PROTOCOL
The HTTP":protocol"
pseudo header field name.static AsciiString
PROXY_AUTHENTICATE
The HTTP"Proxy-Authenticate"
header field name.static AsciiString
PROXY_AUTHORIZATION
The HTTP"Proxy-Authorization"
header field name.static AsciiString
PUBLIC_KEY_PINS
The HTTPPublic-Key-Pins
header field name.static AsciiString
PUBLIC_KEY_PINS_REPORT_ONLY
The HTTPPublic-Key-Pins-Report-Only
header field name.static AsciiString
RANGE
The HTTP"Range"
header field name.static AsciiString
REFERER
The HTTP"Referer"
header field name.static AsciiString
REFERRER_POLICY
The HTTP"Referrer-Policy"
header field name.static AsciiString
REFRESH
The HTTP"Refresh"
header field name.static AsciiString
REPORT_TO
The HTTP"Report-To"
header field name.static AsciiString
RETRY_AFTER
The HTTP"Retry-After"
header field name.static AsciiString
SCHEME
The HTTP":scheme"
pseudo header field name.static AsciiString
SEC_PROVIDED_TOKEN_BINDING_ID
The HTTPSec-Provided-Token-Binding-ID
header field name.static AsciiString
SEC_REFERRED_TOKEN_BINDING_ID
The HTTPSec-Referred-Token-Binding-ID
header field name.static AsciiString
SEC_TOKEN_BINDING
The HTTPSec-Token-Binding
header field name.static AsciiString
SERVER
The HTTP"Server"
header field name.static AsciiString
SERVER_TIMING
The HTTP"Server-Timing"
header field name.static AsciiString
SERVICE_WORKER
The HTTPService-Worker
header field name.static AsciiString
SERVICE_WORKER_ALLOWED
The HTTPService-Worker-Allowed
header field name.static AsciiString
SET_COOKIE
The HTTP"Set-Cookie"
header field name.static AsciiString
SET_COOKIE2
The HTTP"Set-Cookie2"
header field name.static AsciiString
SOURCE_MAP
The HTTP"SourceMap"
header field name.static AsciiString
STATUS
The HTTP":status"
pseudo header field name.static AsciiString
STRICT_TRANSPORT_SECURITY
The HTTPStrict-Transport-Security
header field name.static AsciiString
TE
The HTTP"TE"
header field name.static AsciiString
TIMING_ALLOW_ORIGIN
The HTTPTiming-Allow-Origin
header field name.static AsciiString
TRAILER
The HTTP"Trailer"
header field name.static AsciiString
TRANSFER_ENCODING
The HTTP"Transfer-Encoding"
header field name.static AsciiString
UPGRADE
The HTTP"Upgrade"
header field name.static AsciiString
USER_AGENT
The HTTP"User-Agent"
header field name.static AsciiString
VARY
The HTTP"Vary"
header field name.static AsciiString
VIA
The HTTP"Via"
header field name.static AsciiString
WARNING
The HTTP"Warning"
header field name.static AsciiString
WWW_AUTHENTICATE
The HTTP"WWW-Authenticate"
header field name.static AsciiString
X_CONTENT_TYPE_OPTIONS
The HTTP"X-Content-Type-Options"
header field name.static AsciiString
X_DNS_PREFETCH_CONTROL
The HTTPX-DNS-Prefetch-Control
header controls DNS prefetch behavior.static AsciiString
X_DO_NOT_TRACK
The HTTP"X-Do-Not-Track"
header field name.static AsciiString
X_DOWNLOAD_OPTIONS
The HTTP"X-Download-Options"
header field name.static AsciiString
X_FORWARDED_FOR
The HTTP"X-Forwarded-For"
header field name (superseded by"Forwarded"
).static AsciiString
X_FORWARDED_HOST
The HTTP"X-Forwarded-Host"
header field name.static AsciiString
X_FORWARDED_PORT
The HTTP"X-Forwarded-Port"
header field name.static AsciiString
X_FORWARDED_PROTO
The HTTP"X-Forwarded-Proto"
header field name.static AsciiString
X_FRAME_OPTIONS
The HTTP"X-Frame-Options"
header field name.static AsciiString
X_POWERED_BY
The HTTP"X-Powered-By"
header field name.static AsciiString
X_REQUESTED_WITH
The HTTP"X-Requested-With"
header field name.static AsciiString
X_USER_IP
The HTTP"X-User-IP"
header field name.static AsciiString
X_XSS_PROTECTION
The HTTP"X-XSS-Protection"
header field name. -
Method Summary
Modifier and Type Method Description static AsciiString
of(AsciiString name)
Lower-cases and converts the specified header name into anAsciiString
.static AsciiString
of(CharSequence name)
Lower-cases and converts the specified header name into anAsciiString
.
-
Field Details
-
METHOD
The HTTP":method"
pseudo header field name. -
SCHEME
The HTTP":scheme"
pseudo header field name. -
AUTHORITY
The HTTP":authority"
pseudo header field name. -
PATH
The HTTP":path"
pseudo header field name. -
STATUS
The HTTP":status"
pseudo header field name. -
PROTOCOL
The HTTP":protocol"
pseudo header field name. -
CACHE_CONTROL
The HTTP"Cache-Control"
header field name. -
CONTENT_LENGTH
The HTTP"Content-Length"
header field name. -
CONTENT_TYPE
The HTTP"Content-Type"
header field name. -
DATE
The HTTP"Date"
header field name. -
PRAGMA
The HTTP"Pragma"
header field name. -
VIA
The HTTP"Via"
header field name. -
WARNING
The HTTP"Warning"
header field name. -
ACCEPT
The HTTP"Accept"
header field name. -
ACCEPT_CHARSET
The HTTP"Accept-Charset"
header field name. -
ACCEPT_ENCODING
The HTTP"Accept-Encoding"
header field name. -
ACCEPT_LANGUAGE
The HTTP"Accept-Language"
header field name. -
ACCESS_CONTROL_REQUEST_HEADERS
The HTTP"Access-Control-Request-Headers"
header field name. -
ACCESS_CONTROL_REQUEST_METHOD
The HTTP"Access-Control-Request-Method"
header field name. -
AUTHORIZATION
The HTTP"Authorization"
header field name. -
CONNECTION
The HTTP"Connection"
header field name. -
COOKIE
The HTTP"Cookie"
header field name. -
EARLY_DATA
The HTTP"Early-Data"
header field name. -
EXPECT
The HTTP"Expect"
header field name. -
FROM
The HTTP"From"
header field name. -
FORWARDED
The HTTP"Forwarded"
header field name. -
FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTP"Follow-Only-When-Prerender-Shown"
header field name. -
HOST
The HTTP"Host"
header field name. -
HTTP2_SETTINGS
The HTTP"HTTP2-Settings"
header field name. -
IF_MATCH
The HTTP"If-Match"
header field name. -
IF_MODIFIED_SINCE
The HTTP"If-Modified-Since"
header field name. -
IF_NONE_MATCH
The HTTP"If-None-Match"
header field name. -
IF_RANGE
The HTTP"If-Range"
header field name. -
IF_UNMODIFIED_SINCE
The HTTP"If-Unmodified-Since"
header field name. -
LAST_EVENT_ID
The HTTP"Last-Event-ID"
header field name. -
MAX_FORWARDS
The HTTP"Max-Forwards"
header field name. -
ORIGIN
The HTTP"Origin"
header field name. -
PREFER
The HTTP"Prefer"
header field name. -
PROXY_AUTHORIZATION
The HTTP"Proxy-Authorization"
header field name. -
RANGE
The HTTP"Range"
header field name. -
REFERER
The HTTP"Referer"
header field name. -
REFERRER_POLICY
The HTTP"Referrer-Policy"
header field name. -
SERVICE_WORKER
The HTTPService-Worker
header field name. -
TE
The HTTP"TE"
header field name. -
UPGRADE
The HTTP"Upgrade"
header field name. -
USER_AGENT
The HTTP"User-Agent"
header field name. -
ACCEPT_RANGES
The HTTP"Accept-Ranges"
header field name. -
ACCEPT_PATCH
The HTTP"Accept-Patch"
header field name. -
ACCESS_CONTROL_ALLOW_HEADERS
The HTTP"Access-Control-Allow-Headers"
header field name. -
ACCESS_CONTROL_ALLOW_METHODS
The HTTP"Access-Control-Allow-Methods"
header field name. -
ACCESS_CONTROL_ALLOW_ORIGIN
The HTTP"Access-Control-Allow-Origin"
header field name. -
ACCESS_CONTROL_ALLOW_CREDENTIALS
The HTTP"Access-Control-Allow-Credentials"
header field name. -
ACCESS_CONTROL_EXPOSE_HEADERS
The HTTP"Access-Control-Expose-Headers"
header field name. -
ACCESS_CONTROL_MAX_AGE
The HTTP"Access-Control-Max-Age"
header field name. -
AGE
The HTTP"Age"
header field name. -
ALLOW
The HTTP"Allow"
header field name. -
CONTENT_BASE
The HTTP"Content-Base"
header field name. -
CONTENT_DISPOSITION
The HTTP"Content-Disposition"
header field name. -
CONTENT_ENCODING
The HTTP"Content-Encoding"
header field name. -
CONTENT_LANGUAGE
The HTTP"Content-Language"
header field name. -
CONTENT_LOCATION
The HTTP"Content-Location"
header field name. -
CONTENT_MD5
The HTTP"Content-MD5"
header field name. -
CONTENT_RANGE
The HTTP"Content-Range"
header field name. -
CONTENT_SECURITY_POLICY
The HTTPContent-Security-Policy
header field name. -
CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTP"Content-Security-Policy-Report-Only"
header field name. -
ETAG
The HTTP"ETag"
header field name. -
EXPIRES
The HTTP"Expires"
header field name. -
LAST_MODIFIED
The HTTP"Last-Modified"
header field name. -
LINK
The HTTP"Link"
header field name. -
LOCATION
The HTTP"Location"
header field name. -
ORIGIN_TRIAL
The HTTP"Origin-Trial"
header field name. -
P3P
The HTTP"P3P"
header field name. Limited browser support. -
PROXY_AUTHENTICATE
The HTTP"Proxy-Authenticate"
header field name. -
REFRESH
The HTTP"Refresh"
header field name. Non-standard header supported by most browsers. -
REPORT_TO
The HTTP"Report-To"
header field name. -
RETRY_AFTER
The HTTP"Retry-After"
header field name. -
SERVER
The HTTP"Server"
header field name. -
SERVER_TIMING
The HTTP"Server-Timing"
header field name. -
SERVICE_WORKER_ALLOWED
The HTTPService-Worker-Allowed
header field name. -
SET_COOKIE
The HTTP"Set-Cookie"
header field name. -
SET_COOKIE2
The HTTP"Set-Cookie2"
header field name. -
SOURCE_MAP
The HTTP"SourceMap"
header field name. -
STRICT_TRANSPORT_SECURITY
The HTTPStrict-Transport-Security
header field name. -
TIMING_ALLOW_ORIGIN
The HTTPTiming-Allow-Origin
header field name. -
TRAILER
The HTTP"Trailer"
header field name. -
TRANSFER_ENCODING
The HTTP"Transfer-Encoding"
header field name. -
VARY
The HTTP"Vary"
header field name. -
WWW_AUTHENTICATE
The HTTP"WWW-Authenticate"
header field name. -
DNT
The HTTP"DNT"
header field name. -
X_CONTENT_TYPE_OPTIONS
The HTTP"X-Content-Type-Options"
header field name. -
X_DO_NOT_TRACK
The HTTP"X-Do-Not-Track"
header field name. -
X_FORWARDED_FOR
The HTTP"X-Forwarded-For"
header field name (superseded by"Forwarded"
). -
X_FORWARDED_PROTO
The HTTP"X-Forwarded-Proto"
header field name. -
X_FORWARDED_HOST
The HTTP"X-Forwarded-Host"
header field name. -
X_FORWARDED_PORT
The HTTP"X-Forwarded-Port"
header field name. -
X_FRAME_OPTIONS
The HTTP"X-Frame-Options"
header field name. -
X_POWERED_BY
The HTTP"X-Powered-By"
header field name. -
PUBLIC_KEY_PINS
The HTTPPublic-Key-Pins
header field name. -
PUBLIC_KEY_PINS_REPORT_ONLY
The HTTPPublic-Key-Pins-Report-Only
header field name. -
X_REQUESTED_WITH
The HTTP"X-Requested-With"
header field name. -
X_USER_IP
The HTTP"X-User-IP"
header field name. -
X_DOWNLOAD_OPTIONS
The HTTP"X-Download-Options"
header field name.When the new X-Download-Options header is present with the value
"noopen"
, the user is prevented from opening a file download directly; instead, they must first save the file locally. -
X_XSS_PROTECTION
The HTTP"X-XSS-Protection"
header field name. -
X_DNS_PREFETCH_CONTROL
The HTTPX-DNS-Prefetch-Control
header controls DNS prefetch behavior. Value can be "on" or "off". By default, DNS prefetching is "on" for HTTP pages and "off" for HTTPS pages. -
PING_FROM
The HTTP"Ping-From"
header field name. -
PING_TO
The HTTP"Ping-To"
header field name. -
SEC_TOKEN_BINDING
The HTTPSec-Token-Binding
header field name. -
SEC_PROVIDED_TOKEN_BINDING_ID
The HTTPSec-Provided-Token-Binding-ID
header field name. -
SEC_REFERRED_TOKEN_BINDING_ID
The HTTPSec-Referred-Token-Binding-ID
header field name.
-
-
Method Details
-
of
Lower-cases and converts the specified header name into anAsciiString
. If"name"
is a known header name, this method will return a pre-instantiatedAsciiString
to reduce the allocation rate ofAsciiString
.- Throws:
IllegalArgumentException
- if the specifiedname
is not a valid header name.
-
of
Lower-cases and converts the specified header name into anAsciiString
. If"name"
is a known header name, this method will return a pre-instantiatedAsciiString
to reduce the allocation rate ofAsciiString
.- Throws:
IllegalArgumentException
- if the specifiedname
is not a valid header name.
-