Package com.linecorp.armeria.common
Class HttpHeaderNames
java.lang.Object
com.linecorp.armeria.common.HttpHeaderNames
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
Modifier and TypeFieldDescriptionstatic AsciiString
The HTTP"Accept"
header field name.static AsciiString
The HTTP"Accept-Charset"
header field name.static AsciiString
The HTTP"Accept-Encoding"
header field name.static AsciiString
The HTTP"Accept-Language"
header field name.static AsciiString
The HTTP"Accept-Patch"
header field name.static AsciiString
The HTTP"Accept-Ranges"
header field name.static AsciiString
The HTTP"Access-Control-Allow-Credentials"
header field name.static AsciiString
The HTTP"Access-Control-Allow-Headers"
header field name.static AsciiString
The HTTP"Access-Control-Allow-Methods"
header field name.static AsciiString
The HTTP"Access-Control-Allow-Origin"
header field name.static AsciiString
The HTTP"Access-Control-Expose-Headers"
header field name.static AsciiString
The HTTP"Access-Control-Max-Age"
header field name.static AsciiString
The HTTP"Access-Control-Request-Headers"
header field name.static AsciiString
The HTTP"Access-Control-Request-Method"
header field name.static AsciiString
The HTTP"Age"
header field name.static AsciiString
The HTTP"Allow"
header field name.static AsciiString
The HTTP":authority"
pseudo header field name.static AsciiString
The HTTP"Authorization"
header field name.static AsciiString
The HTTP"Cache-Control"
header field name.static AsciiString
The HTTP"Connection"
header field name.static AsciiString
The HTTP"Content-Base"
header field name.static AsciiString
The HTTP/MIME"Content-Description"
header field name.static AsciiString
The HTTP/MIME"Content-Disposition"
header field name.static AsciiString
The HTTP"Content-Encoding"
header field name.static AsciiString
The HTTP/MIME"Content-ID"
header field name.static AsciiString
The HTTP"Content-Language"
header field name.static AsciiString
The HTTP"Content-Length"
header field name.static AsciiString
The HTTP"Content-Location"
header field name.static AsciiString
The HTTP"Content-MD5"
header field name.static AsciiString
The HTTP"Content-Range"
header field name.static AsciiString
The HTTPContent-Security-Policy
header field name.static AsciiString
The HTTP"Content-Security-Policy-Report-Only"
header field name.static AsciiString
The HTTP/MIME"Content-Transfer-Encoding"
header field name.static AsciiString
The HTTP"Content-Type"
header field name.static AsciiString
The HTTP"Cookie"
header field name.static AsciiString
The HTTP"Date"
header field name.static AsciiString
The HTTP"DNT"
header field name.static AsciiString
The HTTP"Early-Data"
header field name.static AsciiString
The HTTP"ETag"
header field name.static AsciiString
The HTTP"Expect"
header field name.static AsciiString
The HTTP"Expires"
header field name.static AsciiString
The HTTP"Follow-Only-When-Prerender-Shown"
header field name.static AsciiString
The HTTP"Forwarded"
header field name.static AsciiString
The HTTP"From"
header field name.static AsciiString
The HTTP"Host"
header field name.static AsciiString
The HTTP"HTTP2-Settings"
header field name.static AsciiString
The HTTP"If-Match"
header field name.static AsciiString
The HTTP"If-Modified-Since"
header field name.static AsciiString
The HTTP"If-None-Match"
header field name.static AsciiString
The HTTP"If-Range"
header field name.static AsciiString
The HTTP"If-Unmodified-Since"
header field name.static AsciiString
The HTTP"Last-Event-ID"
header field name.static AsciiString
The HTTP"Last-Modified"
header field name.static AsciiString
The HTTP"Link"
header field name.static AsciiString
The HTTP"Location"
header field name.static AsciiString
The HTTP"Max-Forwards"
header field name.static AsciiString
The HTTP":method"
pseudo header field name.static AsciiString
The HTTP"Origin"
header field name.static AsciiString
The HTTP"Origin-Trial"
header field name.static AsciiString
The HTTP"P3P"
header field name.static AsciiString
The HTTP":path"
pseudo header field name.static AsciiString
The HTTP"Ping-From"
header field name.static AsciiString
The HTTP"Ping-To"
header field name.static AsciiString
The HTTP"Pragma"
header field name.static AsciiString
The HTTP"Prefer"
header field name.static AsciiString
The HTTP":protocol"
pseudo header field name.static AsciiString
The HTTP"Proxy-Authenticate"
header field name.static AsciiString
The HTTP"Proxy-Authorization"
header field name.static AsciiString
The HTTPPublic-Key-Pins
header field name.static AsciiString
The HTTPPublic-Key-Pins-Report-Only
header field name.static AsciiString
The HTTP"Range"
header field name.static AsciiString
The HTTP"Referer"
header field name.static AsciiString
The HTTP"Referrer-Policy"
header field name.static AsciiString
The HTTP"Refresh"
header field name.static AsciiString
The HTTP"Report-To"
header field name.static AsciiString
The HTTP"Retry-After"
header field name.static AsciiString
The HTTP":scheme"
pseudo header field name.static AsciiString
The HTTPSec-Provided-Token-Binding-ID
header field name.static AsciiString
The HTTPSec-Referred-Token-Binding-ID
header field name.static AsciiString
The HTTPSec-Token-Binding
header field name.static AsciiString
The HTTP"Server"
header field name.static AsciiString
The HTTP"Server-Timing"
header field name.static AsciiString
The HTTPService-Worker
header field name.static AsciiString
The HTTPService-Worker-Allowed
header field name.static AsciiString
The HTTP"Set-Cookie"
header field name.static AsciiString
The HTTP"Set-Cookie2"
header field name.static AsciiString
The HTTP"SourceMap"
header field name.static AsciiString
The HTTP":status"
pseudo header field name.static AsciiString
The HTTPStrict-Transport-Security
header field name.static AsciiString
The HTTP"TE"
header field name.static AsciiString
The HTTPTiming-Allow-Origin
header field name.static AsciiString
The HTTP"Trailer"
header field name.static AsciiString
The HTTP"Transfer-Encoding"
header field name.static AsciiString
The HTTP"Upgrade"
header field name.static AsciiString
The HTTP"User-Agent"
header field name.static AsciiString
The HTTP"Vary"
header field name.static AsciiString
The HTTP"Via"
header field name.static AsciiString
The HTTP"Warning"
header field name.static AsciiString
The HTTP"WWW-Authenticate"
header field name.static AsciiString
The HTTP"X-Content-Type-Options"
header field name.static AsciiString
The HTTPX-DNS-Prefetch-Control
header controls DNS prefetch behavior.static AsciiString
The HTTP"X-Do-Not-Track"
header field name.static AsciiString
The HTTP"X-Download-Options"
header field name.static AsciiString
The HTTP"X-Forwarded-For"
header field name (superseded by"Forwarded"
).static AsciiString
The HTTP"X-Forwarded-Host"
header field name.static AsciiString
The HTTP"X-Forwarded-Port"
header field name.static AsciiString
The HTTP"X-Forwarded-Proto"
header field name.static AsciiString
The HTTP"X-Frame-Options"
header field name.static AsciiString
The HTTP"X-Powered-By"
header field name.static AsciiString
The HTTP"X-Requested-With"
header field name.static AsciiString
The HTTP"X-User-IP"
header field name.static AsciiString
The HTTP"X-XSS-Protection"
header field name. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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_DESCRIPTION
The HTTP/MIME"Content-Description"
header field name. As described in RFC 1521: MIME Part One: Optional Content-Description Header Field -
CONTENT_DISPOSITION
The HTTP/MIME"Content-Disposition"
header field name. As described in RFC 2183: Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field -
CONTENT_ENCODING
The HTTP"Content-Encoding"
header field name. -
CONTENT_ID
The HTTP/MIME"Content-ID"
header field name. As described in RFC 1521: MIME Part One: Optional Content-ID Header Field -
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. -
CONTENT_TRANSFER_ENCODING
The HTTP/MIME"Content-Transfer-Encoding"
header field name. As described in RFC 1521: MIME Part One: The Content-Transfer-Encoding Header Field -
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.
-