public final class HttpHeaderNames extends Object
All header names in this class are defined in lowercase to support HTTP/2 requirements while also not violating HTTP/1 requirements.
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AsciiString |
ACCEPT
The HTTP
"Accept" header field name. |
static io.netty.util.AsciiString |
ACCEPT_CHARSET
The HTTP
"Accept-Charset" header field name. |
static io.netty.util.AsciiString |
ACCEPT_ENCODING
The HTTP
"Accept-Encoding" header field name. |
static io.netty.util.AsciiString |
ACCEPT_LANGUAGE
The HTTP
"Accept-Language" header field name. |
static io.netty.util.AsciiString |
ACCEPT_PATCH
The HTTP
"Accept-Patch" header field name. |
static io.netty.util.AsciiString |
ACCEPT_RANGES
The HTTP
"Accept-Ranges" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_ALLOW_CREDENTIALS
The HTTP
"Access-Control-Allow-Credentials" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_ALLOW_HEADERS
The HTTP
"Access-Control-Allow-Headers" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_ALLOW_METHODS
The HTTP
"Access-Control-Allow-Methods" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_ALLOW_ORIGIN
The HTTP
"Access-Control-Allow-Origin" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_EXPOSE_HEADERS
The HTTP
"Access-Control-Expose-Headers" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_MAX_AGE
The HTTP
"Access-Control-Max-Age" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_REQUEST_HEADERS
The HTTP
"Access-Control-Request-Headers" header field name. |
static io.netty.util.AsciiString |
ACCESS_CONTROL_REQUEST_METHOD
The HTTP
"Access-Control-Request-Method" header field name. |
static io.netty.util.AsciiString |
AGE
The HTTP
"Age" header field name. |
static io.netty.util.AsciiString |
ALLOW
The HTTP
"Allow" header field name. |
static io.netty.util.AsciiString |
AUTHORITY
The HTTP
":authority" pseudo header field name. |
static io.netty.util.AsciiString |
AUTHORIZATION
The HTTP
"Authorization" header field name. |
static io.netty.util.AsciiString |
CACHE_CONTROL
The HTTP
"Cache-Control" header field name. |
static io.netty.util.AsciiString |
CONNECTION
The HTTP
"Connection" header field name. |
static io.netty.util.AsciiString |
CONTENT_BASE
The HTTP
"Content-Base" header field name. |
static io.netty.util.AsciiString |
CONTENT_DISPOSITION
The HTTP
"Content-Disposition" header field name. |
static io.netty.util.AsciiString |
CONTENT_ENCODING
The HTTP
"Content-Encoding" header field name. |
static io.netty.util.AsciiString |
CONTENT_LANGUAGE
The HTTP
"Content-Language" header field name. |
static io.netty.util.AsciiString |
CONTENT_LENGTH
The HTTP
"Content-Length" header field name. |
static io.netty.util.AsciiString |
CONTENT_LOCATION
The HTTP
"Content-Location" header field name. |
static io.netty.util.AsciiString |
CONTENT_MD5
The HTTP
"Content-MD5" header field name. |
static io.netty.util.AsciiString |
CONTENT_RANGE
The HTTP
"Content-Range" header field name. |
static io.netty.util.AsciiString |
CONTENT_SECURITY_POLICY
The HTTP
Content-Security-Policy header field name. |
static io.netty.util.AsciiString |
CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTP
"Content-Security-Policy-Report-Only" header field name. |
static io.netty.util.AsciiString |
CONTENT_TYPE
The HTTP
"Content-Type" header field name. |
static io.netty.util.AsciiString |
COOKIE
The HTTP
"Cookie" header field name. |
static io.netty.util.AsciiString |
DATE
The HTTP
"Date" header field name. |
static io.netty.util.AsciiString |
DNT
The HTTP
"DNT" header field name. |
static io.netty.util.AsciiString |
EARLY_DATA
The HTTP
"Early-Data" header field
name. |
static io.netty.util.AsciiString |
ETAG
The HTTP
"ETag" header field name. |
static io.netty.util.AsciiString |
EXPECT
The HTTP
"Expect" header field name. |
static io.netty.util.AsciiString |
EXPIRES
The HTTP
"Expires" header field name. |
static io.netty.util.AsciiString |
FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTP
"Follow-Only-When-Prerender-Shown" header field name. |
static io.netty.util.AsciiString |
FORWARDED
The HTTP
"Forwarded" header field name. |
static io.netty.util.AsciiString |
FROM
The HTTP
"From" header field name. |
static io.netty.util.AsciiString |
HOST
The HTTP
"Host" header field name. |
static io.netty.util.AsciiString |
HTTP2_SETTINGS
The HTTP
"HTTP2-Settings"
header field name. |
static io.netty.util.AsciiString |
IF_MATCH
The HTTP
"If-Match" header field name. |
static io.netty.util.AsciiString |
IF_MODIFIED_SINCE
The HTTP
"If-Modified-Since" header field name. |
static io.netty.util.AsciiString |
IF_NONE_MATCH
The HTTP
"If-None-Match" header field name. |
static io.netty.util.AsciiString |
IF_RANGE
The HTTP
"If-Range" header field name. |
static io.netty.util.AsciiString |
IF_UNMODIFIED_SINCE
The HTTP
"If-Unmodified-Since" header field name. |
static io.netty.util.AsciiString |
LAST_EVENT_ID
The HTTP
"Last-Event-ID" header field name. |
static io.netty.util.AsciiString |
LAST_MODIFIED
The HTTP
"Last-Modified" header field name. |
static io.netty.util.AsciiString |
LINK
The HTTP
"Link" header field name. |
static io.netty.util.AsciiString |
LOCATION
The HTTP
"Location" header field name. |
static io.netty.util.AsciiString |
MAX_FORWARDS
The HTTP
"Max-Forwards" header field name. |
static io.netty.util.AsciiString |
METHOD
The HTTP
":method" pseudo header field name. |
static io.netty.util.AsciiString |
ORIGIN
The HTTP
"Origin" header field name. |
static io.netty.util.AsciiString |
ORIGIN_TRIAL
The HTTP
"Origin-Trial"
header field name. |
static io.netty.util.AsciiString |
P3P
The HTTP
"P3P" header field name. |
static io.netty.util.AsciiString |
PATH
The HTTP
":path" pseudo header field name. |
static io.netty.util.AsciiString |
PING_FROM
The HTTP
"Ping-From" header field name. |
static io.netty.util.AsciiString |
PING_TO
The HTTP
"Ping-To" header field name. |
static io.netty.util.AsciiString |
PRAGMA
The HTTP
"Pragma" header field name. |
static io.netty.util.AsciiString |
PREFER
The HTTP
"Prefer" header field name. |
static io.netty.util.AsciiString |
PROXY_AUTHENTICATE
The HTTP
"Proxy-Authenticate" header field name. |
static io.netty.util.AsciiString |
PROXY_AUTHORIZATION
The HTTP
"Proxy-Authorization" header field name. |
static io.netty.util.AsciiString |
PUBLIC_KEY_PINS
The HTTP
Public-Key-Pins header field name. |
static io.netty.util.AsciiString |
PUBLIC_KEY_PINS_REPORT_ONLY
The HTTP
Public-Key-Pins-Report-Only header field name. |
static io.netty.util.AsciiString |
RANGE
The HTTP
"Range" header field name. |
static io.netty.util.AsciiString |
REFERER
The HTTP
"Referer" header field name. |
static io.netty.util.AsciiString |
REFERRER_POLICY
The HTTP
"Referrer-Policy" header
field name. |
static io.netty.util.AsciiString |
REFRESH
The HTTP
"Refresh" header field name. |
static io.netty.util.AsciiString |
REPORT_TO
The HTTP
"Report-To" header field name. |
static io.netty.util.AsciiString |
RETRY_AFTER
The HTTP
"Retry-After" header field name. |
static io.netty.util.AsciiString |
SCHEME
The HTTP
":scheme" pseudo header field name. |
static io.netty.util.AsciiString |
SEC_PROVIDED_TOKEN_BINDING_ID
The HTTP
Sec-Provided-Token-Binding-ID header field name. |
static io.netty.util.AsciiString |
SEC_REFERRED_TOKEN_BINDING_ID
The HTTP
Sec-Referred-Token-Binding-ID header field name. |
static io.netty.util.AsciiString |
SEC_TOKEN_BINDING
The HTTP
Sec-Token-Binding header field name. |
static io.netty.util.AsciiString |
SERVER
The HTTP
"Server" header field name. |
static io.netty.util.AsciiString |
SERVER_TIMING
The HTTP
"Server-Timing" header field
name. |
static io.netty.util.AsciiString |
SERVICE_WORKER
The HTTP
Service-Worker header field name. |
static io.netty.util.AsciiString |
SERVICE_WORKER_ALLOWED
The HTTP
Service-Worker-Allowed header field name. |
static io.netty.util.AsciiString |
SET_COOKIE
The HTTP
"Set-Cookie" header field name. |
static io.netty.util.AsciiString |
SET_COOKIE2
The HTTP
"Set-Cookie2" header field name. |
static io.netty.util.AsciiString |
SOURCE_MAP
The HTTP
"SourceMap" header field name. |
static io.netty.util.AsciiString |
STATUS
The HTTP
":status" pseudo header field name. |
static io.netty.util.AsciiString |
STRICT_TRANSPORT_SECURITY
The HTTP
Strict-Transport-Security header field name. |
static io.netty.util.AsciiString |
TE
The HTTP
"TE" header field name. |
static io.netty.util.AsciiString |
TIMING_ALLOW_ORIGIN
The HTTP
Timing-Allow-Origin header field name. |
static io.netty.util.AsciiString |
TRAILER
The HTTP
"Trailer" header field name. |
static io.netty.util.AsciiString |
TRANSFER_ENCODING
The HTTP
"Transfer-Encoding" header field name. |
static io.netty.util.AsciiString |
UPGRADE
The HTTP
"Upgrade" header field name. |
static io.netty.util.AsciiString |
USER_AGENT
The HTTP
"User-Agent" header field name. |
static io.netty.util.AsciiString |
VARY
The HTTP
"Vary" header field name. |
static io.netty.util.AsciiString |
VIA
The HTTP
"Via" header field name. |
static io.netty.util.AsciiString |
WARNING
The HTTP
"Warning" header field name. |
static io.netty.util.AsciiString |
WWW_AUTHENTICATE
The HTTP
"WWW-Authenticate" header field name. |
static io.netty.util.AsciiString |
X_CONTENT_TYPE_OPTIONS
The HTTP
"X-Content-Type-Options" header field name. |
static io.netty.util.AsciiString |
X_DNS_PREFETCH_CONTROL
The HTTP
X-DNS-Prefetch-Control header controls DNS prefetch behavior. |
static io.netty.util.AsciiString |
X_DO_NOT_TRACK
The HTTP
"X-Do-Not-Track" header field name. |
static io.netty.util.AsciiString |
X_DOWNLOAD_OPTIONS
The HTTP
"X-Download-Options" header field name. |
static io.netty.util.AsciiString |
X_FORWARDED_FOR
The HTTP
"X-Forwarded-For" header field name (superseded by "Forwarded"). |
static io.netty.util.AsciiString |
X_FORWARDED_HOST
The HTTP
"X-Forwarded-Host" header field name. |
static io.netty.util.AsciiString |
X_FORWARDED_PORT
The HTTP
"X-Forwarded-Port" header field name. |
static io.netty.util.AsciiString |
X_FORWARDED_PROTO
The HTTP
"X-Forwarded-Proto" header field name. |
static io.netty.util.AsciiString |
X_FRAME_OPTIONS
The HTTP
"X-Frame-Options" header field name. |
static io.netty.util.AsciiString |
X_POWERED_BY
The HTTP
"X-Powered-By" header field name. |
static io.netty.util.AsciiString |
X_REQUESTED_WITH
The HTTP
"X-Requested-With" header field name. |
static io.netty.util.AsciiString |
X_USER_IP
The HTTP
"X-User-IP" header field name. |
static io.netty.util.AsciiString |
X_XSS_PROTECTION
The HTTP
"X-XSS-Protection" header field name. |
| Modifier and Type | Method and Description |
|---|---|
static io.netty.util.AsciiString |
of(io.netty.util.AsciiString name)
Lower-cases and converts the specified header name into an
AsciiString. |
static io.netty.util.AsciiString |
of(CharSequence name)
Lower-cases and converts the specified header name into an
AsciiString. |
public static final io.netty.util.AsciiString METHOD
":method" pseudo header field name.public static final io.netty.util.AsciiString SCHEME
":scheme" pseudo header field name.public static final io.netty.util.AsciiString AUTHORITY
":authority" pseudo header field name.public static final io.netty.util.AsciiString PATH
":path" pseudo header field name.public static final io.netty.util.AsciiString STATUS
":status" pseudo header field name.public static final io.netty.util.AsciiString CACHE_CONTROL
"Cache-Control" header field name.public static final io.netty.util.AsciiString CONTENT_LENGTH
"Content-Length" header field name.public static final io.netty.util.AsciiString CONTENT_TYPE
"Content-Type" header field name.public static final io.netty.util.AsciiString DATE
"Date" header field name.public static final io.netty.util.AsciiString PRAGMA
"Pragma" header field name.public static final io.netty.util.AsciiString VIA
"Via" header field name.public static final io.netty.util.AsciiString WARNING
"Warning" header field name.public static final io.netty.util.AsciiString ACCEPT
"Accept" header field name.public static final io.netty.util.AsciiString ACCEPT_CHARSET
"Accept-Charset" header field name.public static final io.netty.util.AsciiString ACCEPT_ENCODING
"Accept-Encoding" header field name.public static final io.netty.util.AsciiString ACCEPT_LANGUAGE
"Accept-Language" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_REQUEST_HEADERS
"Access-Control-Request-Headers" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_REQUEST_METHOD
"Access-Control-Request-Method" header field name.public static final io.netty.util.AsciiString AUTHORIZATION
"Authorization" header field name.public static final io.netty.util.AsciiString CONNECTION
"Connection" header field name.public static final io.netty.util.AsciiString COOKIE
"Cookie" header field name.public static final io.netty.util.AsciiString EARLY_DATA
"Early-Data" header field
name.public static final io.netty.util.AsciiString EXPECT
"Expect" header field name.public static final io.netty.util.AsciiString FROM
"From" header field name.public static final io.netty.util.AsciiString FORWARDED
"Forwarded" header field name.public static final io.netty.util.AsciiString FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
"Follow-Only-When-Prerender-Shown" header field name.public static final io.netty.util.AsciiString HOST
"Host" header field name.public static final io.netty.util.AsciiString HTTP2_SETTINGS
"HTTP2-Settings"
header field name.public static final io.netty.util.AsciiString IF_MATCH
"If-Match" header field name.public static final io.netty.util.AsciiString IF_MODIFIED_SINCE
"If-Modified-Since" header field name.public static final io.netty.util.AsciiString IF_NONE_MATCH
"If-None-Match" header field name.public static final io.netty.util.AsciiString IF_RANGE
"If-Range" header field name.public static final io.netty.util.AsciiString IF_UNMODIFIED_SINCE
"If-Unmodified-Since" header field name.public static final io.netty.util.AsciiString LAST_EVENT_ID
"Last-Event-ID" header field name.public static final io.netty.util.AsciiString MAX_FORWARDS
"Max-Forwards" header field name.public static final io.netty.util.AsciiString ORIGIN
"Origin" header field name.public static final io.netty.util.AsciiString PREFER
"Prefer" header field name.public static final io.netty.util.AsciiString PROXY_AUTHORIZATION
"Proxy-Authorization" header field name.public static final io.netty.util.AsciiString RANGE
"Range" header field name.public static final io.netty.util.AsciiString REFERER
"Referer" header field name.public static final io.netty.util.AsciiString REFERRER_POLICY
"Referrer-Policy" header
field name.public static final io.netty.util.AsciiString SERVICE_WORKER
Service-Worker header field name.public static final io.netty.util.AsciiString TE
"TE" header field name.public static final io.netty.util.AsciiString UPGRADE
"Upgrade" header field name.public static final io.netty.util.AsciiString USER_AGENT
"User-Agent" header field name.public static final io.netty.util.AsciiString ACCEPT_RANGES
"Accept-Ranges" header field name.public static final io.netty.util.AsciiString ACCEPT_PATCH
"Accept-Patch" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_ALLOW_HEADERS
"Access-Control-Allow-Headers" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_ALLOW_METHODS
"Access-Control-Allow-Methods" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_ALLOW_ORIGIN
"Access-Control-Allow-Origin" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_ALLOW_CREDENTIALS
"Access-Control-Allow-Credentials" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_EXPOSE_HEADERS
"Access-Control-Expose-Headers" header field name.public static final io.netty.util.AsciiString ACCESS_CONTROL_MAX_AGE
"Access-Control-Max-Age" header field name.public static final io.netty.util.AsciiString AGE
"Age" header field name.public static final io.netty.util.AsciiString ALLOW
"Allow" header field name.public static final io.netty.util.AsciiString CONTENT_BASE
"Content-Base" header field name.public static final io.netty.util.AsciiString CONTENT_DISPOSITION
"Content-Disposition" header field name.public static final io.netty.util.AsciiString CONTENT_ENCODING
"Content-Encoding" header field name.public static final io.netty.util.AsciiString CONTENT_LANGUAGE
"Content-Language" header field name.public static final io.netty.util.AsciiString CONTENT_LOCATION
"Content-Location" header field name.public static final io.netty.util.AsciiString CONTENT_MD5
"Content-MD5" header field name.public static final io.netty.util.AsciiString CONTENT_RANGE
"Content-Range" header field name.public static final io.netty.util.AsciiString CONTENT_SECURITY_POLICY
Content-Security-Policy header field name.public static final io.netty.util.AsciiString CONTENT_SECURITY_POLICY_REPORT_ONLY
"Content-Security-Policy-Report-Only" header field name.public static final io.netty.util.AsciiString ETAG
"ETag" header field name.public static final io.netty.util.AsciiString EXPIRES
"Expires" header field name.public static final io.netty.util.AsciiString LAST_MODIFIED
"Last-Modified" header field name.public static final io.netty.util.AsciiString LINK
"Link" header field name.public static final io.netty.util.AsciiString LOCATION
"Location" header field name.public static final io.netty.util.AsciiString ORIGIN_TRIAL
"Origin-Trial"
header field name.public static final io.netty.util.AsciiString P3P
"P3P" header field name. Limited browser support.public static final io.netty.util.AsciiString PROXY_AUTHENTICATE
"Proxy-Authenticate" header field name.public static final io.netty.util.AsciiString REFRESH
"Refresh" header field name. Non-standard header supported by most browsers.public static final io.netty.util.AsciiString REPORT_TO
"Report-To" header field name.public static final io.netty.util.AsciiString RETRY_AFTER
"Retry-After" header field name.public static final io.netty.util.AsciiString SERVER
"Server" header field name.public static final io.netty.util.AsciiString SERVER_TIMING
"Server-Timing" header field
name.public static final io.netty.util.AsciiString SERVICE_WORKER_ALLOWED
Service-Worker-Allowed header field name.public static final io.netty.util.AsciiString SET_COOKIE
"Set-Cookie" header field name.public static final io.netty.util.AsciiString SET_COOKIE2
"Set-Cookie2" header field name.public static final io.netty.util.AsciiString SOURCE_MAP
"SourceMap" header field name.public static final io.netty.util.AsciiString STRICT_TRANSPORT_SECURITY
Strict-Transport-Security header field name.public static final io.netty.util.AsciiString TIMING_ALLOW_ORIGIN
Timing-Allow-Origin header field name.public static final io.netty.util.AsciiString TRAILER
"Trailer" header field name.public static final io.netty.util.AsciiString TRANSFER_ENCODING
"Transfer-Encoding" header field name.public static final io.netty.util.AsciiString VARY
"Vary" header field name.public static final io.netty.util.AsciiString WWW_AUTHENTICATE
"WWW-Authenticate" header field name.public static final io.netty.util.AsciiString DNT
"DNT" header field name.public static final io.netty.util.AsciiString X_CONTENT_TYPE_OPTIONS
"X-Content-Type-Options" header field name.public static final io.netty.util.AsciiString X_DO_NOT_TRACK
"X-Do-Not-Track" header field name.public static final io.netty.util.AsciiString X_FORWARDED_FOR
"X-Forwarded-For" header field name (superseded by "Forwarded").public static final io.netty.util.AsciiString X_FORWARDED_PROTO
"X-Forwarded-Proto" header field name.public static final io.netty.util.AsciiString X_FORWARDED_HOST
"X-Forwarded-Host" header field name.public static final io.netty.util.AsciiString X_FORWARDED_PORT
"X-Forwarded-Port" header field name.public static final io.netty.util.AsciiString X_FRAME_OPTIONS
"X-Frame-Options" header field name.public static final io.netty.util.AsciiString X_POWERED_BY
"X-Powered-By" header field name.public static final io.netty.util.AsciiString PUBLIC_KEY_PINS
Public-Key-Pins header field name.public static final io.netty.util.AsciiString PUBLIC_KEY_PINS_REPORT_ONLY
Public-Key-Pins-Report-Only header field name.public static final io.netty.util.AsciiString X_REQUESTED_WITH
"X-Requested-With" header field name.public static final io.netty.util.AsciiString X_USER_IP
"X-User-IP" header field name.public static final io.netty.util.AsciiString X_DOWNLOAD_OPTIONS
"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.
public static final io.netty.util.AsciiString X_XSS_PROTECTION
"X-XSS-Protection" header field name.public static final io.netty.util.AsciiString X_DNS_PREFETCH_CONTROL
X-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.public static final io.netty.util.AsciiString PING_FROM
"Ping-From" header field name.public static final io.netty.util.AsciiString PING_TO
"Ping-To" header field name.public static final io.netty.util.AsciiString SEC_TOKEN_BINDING
Sec-Token-Binding header field name.public static final io.netty.util.AsciiString SEC_PROVIDED_TOKEN_BINDING_ID
Sec-Provided-Token-Binding-ID header field name.public static final io.netty.util.AsciiString SEC_REFERRED_TOKEN_BINDING_ID
Sec-Referred-Token-Binding-ID header field name.public static io.netty.util.AsciiString of(CharSequence name)
AsciiString. If "name" is
a known header name, this method will return a pre-instantiated AsciiString to reduce
the allocation rate of AsciiString.IllegalArgumentException - if the specified name is not a valid header name.public static io.netty.util.AsciiString of(io.netty.util.AsciiString name)
AsciiString. If "name" is
a known header name, this method will return a pre-instantiated AsciiString to reduce
the allocation rate of AsciiString.IllegalArgumentException - if the specified name is not a valid header name.Copyright © 2020 LeanCloud. All rights reserved.