public interface HttpHeaders extends Headers
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPT
"Accept" . |
static java.lang.String |
ACCEPT_CH
"Accept-CH" . |
static java.lang.String |
ACCEPT_CH_LIFETIME
"Accept-CH" . |
static java.lang.String |
ACCEPT_CHARSET
"Accept-Charset" . |
static java.lang.String |
ACCEPT_ENCODING
"Accept-Encoding" . |
static java.lang.String |
ACCEPT_LANGUAGE
"Accept-Language" . |
static java.lang.String |
ACCEPT_PATCH
"Accept-Patch" . |
static java.lang.String |
ACCEPT_RANGES
"Accept-Ranges" . |
static java.lang.String |
ACCESS_CONTROL_ALLOW_CREDENTIALS
"Access-Control-Allow-Credentials" . |
static java.lang.String |
ACCESS_CONTROL_ALLOW_HEADERS
"Access-Control-Allow-Headers" . |
static java.lang.String |
ACCESS_CONTROL_ALLOW_METHODS
"Access-Control-Allow-Methods" . |
static java.lang.String |
ACCESS_CONTROL_ALLOW_ORIGIN
"Access-Control-Allow-Origin" . |
static java.lang.String |
ACCESS_CONTROL_EXPOSE_HEADERS
"Access-Control-Expose-Headers" . |
static java.lang.String |
ACCESS_CONTROL_MAX_AGE
"Access-Control-Max-Age" . |
static java.lang.String |
ACCESS_CONTROL_REQUEST_HEADERS
"Access-Control-Request-Headers" . |
static java.lang.String |
ACCESS_CONTROL_REQUEST_METHOD
"Access-Control-Request-Method" . |
static java.lang.String |
AGE
"Age" . |
static java.lang.String |
ALLOW
"Allow" . |
static java.lang.String |
AUTHORIZATION
"Authorization" . |
static java.lang.String |
AUTHORIZATION_INFO
"Authorization" . |
static java.lang.String |
CACHE_CONTROL
"Cache-Control" . |
static java.lang.String |
CONNECTION
"Connection" . |
static java.lang.String |
CONTENT_BASE
"Content-Base" . |
static java.lang.String |
CONTENT_DISPOSITION
"Content-Disposition" . |
static java.lang.String |
CONTENT_DPR
"Content-DPR" . |
static java.lang.String |
CONTENT_ENCODING
"Content-Encoding" . |
static java.lang.String |
CONTENT_LANGUAGE
"Content-Language" . |
static java.lang.String |
CONTENT_LENGTH
"Content-Length" . |
static java.lang.String |
CONTENT_LOCATION
"Content-Location" . |
static java.lang.String |
CONTENT_MD5
"Content-MD5" . |
static java.lang.String |
CONTENT_RANGE
"Content-Range" . |
static java.lang.String |
CONTENT_TRANSFER_ENCODING
"Content-Transfer-Encoding" . |
static java.lang.String |
CONTENT_TYPE
"Content-Type" . |
static java.lang.String |
COOKIE
"Cookie" . |
static java.lang.String |
CROSS_ORIGIN_RESOURCE_POLICY
"Cross-Origin-Resource-Policy" . |
static java.lang.String |
DATE
"Date" . |
static java.lang.String |
DEVICE_MEMORY
"Device-Memory" . |
static java.lang.String |
DOWNLINK
"Downlink" . |
static java.lang.String |
DPR
"DPR" . |
static java.lang.String |
ECT
"ECT" . |
static java.lang.String |
ETAG
"ETag" . |
static java.lang.String |
EXPECT
"Expect" . |
static java.lang.String |
EXPIRES
"Expires" . |
static java.lang.String |
FEATURE_POLICY
"Feature-Policy" . |
static java.lang.String |
FORWARDED
"Forwarded" . |
static java.lang.String |
FROM
"From" . |
static java.lang.String |
HOST
"Host" . |
static java.lang.String |
IF_MATCH
"If-Match" . |
static java.lang.String |
IF_MODIFIED_SINCE
"If-Modified-Since" . |
static java.lang.String |
IF_NONE_MATCH
"If-None-Match" . |
static java.lang.String |
IF_RANGE
"If-Range" . |
static java.lang.String |
IF_UNMODIFIED_SINCE
"If-Unmodified-Since" . |
static java.lang.String |
LAST_MODIFIED
"Last-Modified" . |
static java.lang.String |
LINK
"Link" . |
static java.lang.String |
LOCATION
"Location" . |
static java.lang.String |
MAX_FORWARDS
"Max-Forwards" . |
static java.lang.String |
ORIGIN
"Origin" . |
static java.lang.String |
PRAGMA
"Pragma" . |
static java.lang.String |
PROXY_AUTHENTICATE
"Proxy-Authenticate" . |
static java.lang.String |
PROXY_AUTHORIZATION
"Proxy-Authorization" . |
static java.lang.String |
RANGE
"Range" . |
static java.lang.String |
REFERER
"Referer" . |
static java.lang.String |
REFERRER_POLICY
"Referrer-Policy" . |
static java.lang.String |
RETRY_AFTER
"Retry-After" . |
static java.lang.String |
RTT
"RTT" . |
static java.lang.String |
SAVE_DATA
"Save-Data" . |
static java.lang.String |
SEC_WEBSOCKET_ACCEPT
"Sec-WebSocket-Accept" . |
static java.lang.String |
SEC_WEBSOCKET_KEY
"Sec-WebSocket-Key" . |
static java.lang.String |
SEC_WEBSOCKET_KEY1
"Sec-WebSocket-Key1" . |
static java.lang.String |
SEC_WEBSOCKET_KEY2
"Sec-WebSocket-Key2" . |
static java.lang.String |
SEC_WEBSOCKET_LOCATION
"Sec-WebSocket-Location" . |
static java.lang.String |
SEC_WEBSOCKET_ORIGIN
"Sec-WebSocket-Origin" . |
static java.lang.String |
SEC_WEBSOCKET_PROTOCOL
"Sec-WebSocket-Protocol" . |
static java.lang.String |
SEC_WEBSOCKET_VERSION
"Sec-WebSocket-Version" . |
static java.lang.String |
SERVER
"Server" . |
static java.lang.String |
SET_COOKIE
"Set-Cookie" . |
static java.lang.String |
SET_COOKIE2
"Set-Cookie2" . |
static java.lang.String |
SOURCE_MAP
"Source-Map" . |
static java.lang.String |
TE
"TE" . |
static java.lang.String |
TRAILER
"Trailer" . |
static java.lang.String |
TRANSFER_ENCODING
"Transfer-Encoding" . |
static java.lang.String |
UPGRADE
"Upgrade" . |
static java.lang.String |
USER_AGENT
"User-Agent" . |
static java.lang.String |
VARY
"Vary" . |
static java.lang.String |
VIA
"Via" . |
static java.lang.String |
VIEWPORT_WIDTH
"Viewport-Width" . |
static java.lang.String |
WARNING
"Warning" . |
static java.lang.String |
WEBSOCKET_LOCATION
"WebSocket-Location" . |
static java.lang.String |
WEBSOCKET_ORIGIN
"WebSocket-Origin" . |
static java.lang.String |
WEBSOCKET_PROTOCOL
"WebSocket-Protocol" . |
static java.lang.String |
WIDTH
"Width" . |
static java.lang.String |
WWW_AUTHENTICATE
"WWW-Authenticate" . |
static java.lang.String |
X_AUTH_TOKEN
"X-Auth-Token" . |
EMPTY
Modifier and Type | Method and Description |
---|---|
default java.util.List<MediaType> |
accept()
A list of accepted
MediaType instances. |
default java.util.OptionalLong |
contentLength()
The request or response content type.
|
default java.util.Optional<MediaType> |
contentType()
The request or response content type.
|
default java.util.Optional<java.time.ZonedDateTime> |
findDate(java.lang.CharSequence name)
Obtain the date header.
|
default java.util.Optional<java.lang.String> |
findFirst(java.lang.CharSequence name)
Get the first value of the given header.
|
default java.util.Optional<java.lang.Integer> |
findInt(java.lang.CharSequence name)
Find an integer header.
|
default java.util.Optional<java.lang.String> |
getAuthorization() |
default java.util.Optional<java.lang.String> |
getContentType() |
default java.time.ZonedDateTime |
getDate(java.lang.CharSequence name)
Obtain the date header.
|
default java.lang.Integer |
getInt(java.lang.CharSequence name)
Obtain an integer header.
|
default java.util.Optional<java.lang.String> |
getOrigin() |
default boolean |
isKeepAlive() |
empty, forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, of
asMap, asMap, asProperties, contains, getValue, getValueType, names, of, subMap, subMap, subMap, values
get, get, get, get
static final java.lang.String ACCEPT
"Accept"
.static final java.lang.String ACCEPT_CH
"Accept-CH"
.static final java.lang.String ACCEPT_CH_LIFETIME
"Accept-CH"
.static final java.lang.String ACCEPT_CHARSET
"Accept-Charset"
.static final java.lang.String ACCEPT_ENCODING
"Accept-Encoding"
.static final java.lang.String ACCEPT_LANGUAGE
"Accept-Language"
.static final java.lang.String ACCEPT_RANGES
"Accept-Ranges"
.static final java.lang.String ACCEPT_PATCH
"Accept-Patch"
.static final java.lang.String ACCESS_CONTROL_ALLOW_CREDENTIALS
"Access-Control-Allow-Credentials"
.static final java.lang.String ACCESS_CONTROL_ALLOW_HEADERS
"Access-Control-Allow-Headers"
.static final java.lang.String ACCESS_CONTROL_ALLOW_METHODS
"Access-Control-Allow-Methods"
.static final java.lang.String ACCESS_CONTROL_ALLOW_ORIGIN
"Access-Control-Allow-Origin"
.static final java.lang.String ACCESS_CONTROL_EXPOSE_HEADERS
"Access-Control-Expose-Headers"
.static final java.lang.String ACCESS_CONTROL_MAX_AGE
"Access-Control-Max-Age"
.static final java.lang.String ACCESS_CONTROL_REQUEST_HEADERS
"Access-Control-Request-Headers"
.static final java.lang.String ACCESS_CONTROL_REQUEST_METHOD
"Access-Control-Request-Method"
.static final java.lang.String AGE
"Age"
.static final java.lang.String ALLOW
"Allow"
.static final java.lang.String AUTHORIZATION
"Authorization"
.static final java.lang.String AUTHORIZATION_INFO
"Authorization"
.static final java.lang.String CACHE_CONTROL
"Cache-Control"
.static final java.lang.String CONNECTION
"Connection"
.static final java.lang.String CONTENT_BASE
"Content-Base"
.static final java.lang.String CONTENT_DISPOSITION
"Content-Disposition"
.static final java.lang.String CONTENT_DPR
"Content-DPR"
.static final java.lang.String CONTENT_ENCODING
"Content-Encoding"
.static final java.lang.String CONTENT_LANGUAGE
"Content-Language"
.static final java.lang.String CONTENT_LENGTH
"Content-Length"
.static final java.lang.String CONTENT_LOCATION
"Content-Location"
.static final java.lang.String CONTENT_TRANSFER_ENCODING
"Content-Transfer-Encoding"
.static final java.lang.String CONTENT_MD5
"Content-MD5"
.static final java.lang.String CONTENT_RANGE
"Content-Range"
.static final java.lang.String CONTENT_TYPE
"Content-Type"
.static final java.lang.String COOKIE
"Cookie"
.static final java.lang.String CROSS_ORIGIN_RESOURCE_POLICY
"Cross-Origin-Resource-Policy"
.static final java.lang.String DATE
"Date"
.static final java.lang.String DEVICE_MEMORY
"Device-Memory"
.static final java.lang.String DOWNLINK
"Downlink"
.static final java.lang.String DPR
"DPR"
.static final java.lang.String ECT
"ECT"
.static final java.lang.String ETAG
"ETag"
.static final java.lang.String EXPECT
"Expect"
.static final java.lang.String EXPIRES
"Expires"
.static final java.lang.String FEATURE_POLICY
"Feature-Policy"
.static final java.lang.String FORWARDED
"Forwarded"
.static final java.lang.String FROM
"From"
.static final java.lang.String HOST
"Host"
.static final java.lang.String IF_MATCH
"If-Match"
.static final java.lang.String IF_MODIFIED_SINCE
"If-Modified-Since"
.static final java.lang.String IF_NONE_MATCH
"If-None-Match"
.static final java.lang.String IF_RANGE
"If-Range"
.static final java.lang.String IF_UNMODIFIED_SINCE
"If-Unmodified-Since"
.static final java.lang.String LAST_MODIFIED
"Last-Modified"
.static final java.lang.String LINK
"Link"
.static final java.lang.String LOCATION
"Location"
.static final java.lang.String MAX_FORWARDS
"Max-Forwards"
.static final java.lang.String ORIGIN
"Origin"
.static final java.lang.String PRAGMA
"Pragma"
.static final java.lang.String PROXY_AUTHENTICATE
"Proxy-Authenticate"
.static final java.lang.String PROXY_AUTHORIZATION
"Proxy-Authorization"
.static final java.lang.String RANGE
"Range"
.static final java.lang.String REFERER
"Referer"
.static final java.lang.String REFERRER_POLICY
"Referrer-Policy"
.static final java.lang.String RETRY_AFTER
"Retry-After"
.static final java.lang.String RTT
"RTT"
.static final java.lang.String SAVE_DATA
"Save-Data"
.static final java.lang.String SEC_WEBSOCKET_KEY1
"Sec-WebSocket-Key1"
.static final java.lang.String SEC_WEBSOCKET_KEY2
"Sec-WebSocket-Key2"
.static final java.lang.String SEC_WEBSOCKET_LOCATION
"Sec-WebSocket-Location"
.static final java.lang.String SEC_WEBSOCKET_ORIGIN
"Sec-WebSocket-Origin"
.static final java.lang.String SEC_WEBSOCKET_PROTOCOL
"Sec-WebSocket-Protocol"
.static final java.lang.String SEC_WEBSOCKET_VERSION
"Sec-WebSocket-Version"
.static final java.lang.String SEC_WEBSOCKET_KEY
"Sec-WebSocket-Key"
.static final java.lang.String SEC_WEBSOCKET_ACCEPT
"Sec-WebSocket-Accept"
.static final java.lang.String SERVER
"Server"
.static final java.lang.String SET_COOKIE
"Set-Cookie"
.static final java.lang.String SET_COOKIE2
"Set-Cookie2"
.static final java.lang.String SOURCE_MAP
"Source-Map"
.static final java.lang.String TE
"TE"
.static final java.lang.String TRAILER
"Trailer"
.static final java.lang.String TRANSFER_ENCODING
"Transfer-Encoding"
.static final java.lang.String UPGRADE
"Upgrade"
.static final java.lang.String USER_AGENT
"User-Agent"
.static final java.lang.String VARY
"Vary"
.static final java.lang.String VIA
"Via"
.static final java.lang.String VIEWPORT_WIDTH
"Viewport-Width"
.static final java.lang.String WARNING
"Warning"
.static final java.lang.String WEBSOCKET_LOCATION
"WebSocket-Location"
.static final java.lang.String WEBSOCKET_ORIGIN
"WebSocket-Origin"
.static final java.lang.String WEBSOCKET_PROTOCOL
"WebSocket-Protocol"
.static final java.lang.String WIDTH
"Width"
.static final java.lang.String WWW_AUTHENTICATE
"WWW-Authenticate"
.static final java.lang.String X_AUTH_TOKEN
"X-Auth-Token"
.default java.util.Optional<java.time.ZonedDateTime> findDate(java.lang.CharSequence name)
name
- The header nameZonedDateTime
otherwise if it is not present or cannot be parsed
Optional.empty()
default java.time.ZonedDateTime getDate(java.lang.CharSequence name)
name
- The header nameZonedDateTime
otherwise if it is not present or cannot be parsed nulldefault java.lang.Integer getInt(java.lang.CharSequence name)
name
- The header nameZonedDateTime
otherwise if it is not present or cannot be parsed nulldefault java.util.Optional<java.lang.Integer> findInt(java.lang.CharSequence name)
name
- The name of the headerOptional
of Integer
default java.util.Optional<java.lang.String> findFirst(java.lang.CharSequence name)
name
- The header namedefault java.util.Optional<MediaType> contentType()
default java.util.OptionalLong contentLength()
default java.util.List<MediaType> accept()
MediaType
instances.MediaType
instancesdefault boolean isKeepAlive()
CONNECTION
header is set to Keep-Alivedefault java.util.Optional<java.lang.String> getOrigin()
ORIGIN
headerdefault java.util.Optional<java.lang.String> getAuthorization()
AUTHORIZATION
headerdefault java.util.Optional<java.lang.String> getContentType()
CONTENT_TYPE
header