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