Package com.google.common.net
Class HttpHeaders
java.lang.Object
com.google.common.net.HttpHeaders
Contains constant definitions for the HTTP header field names. See:
- Since:
- 11.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The HTTPAccept
header field name.static final String
The HTTPAccept-Charset
header field name.static final String
The HTTPAccept-Encoding
header field name.static final String
The HTTPAccept-Language
header field name.static final String
The HTTPAccept-Ranges
header field name.static final String
The HTTPAccess-Control-Allow-Credentials
header field name.static final String
The HTTPAccess-Control-Allow-Headers
header field name.static final String
The HTTPAccess-Control-Allow-Methods
header field name.static final String
The HTTPAccess-Control-Allow-Origin
header field name.static final String
The HTTPAccess-Control-Expose-Headers
header field name.static final String
The HTTPAccess-Control-Max-Age
header field name.static final String
The HTTPAccess-Control-Request-Headers
header field name.static final String
The HTTPAccess-Control-Request-Method
header field name.static final String
The HTTPAge
header field name.static final String
The HTTPAllow
header field name.static final String
The HTTPAuthorization
header field name.static final String
The HTTPCache-Control
header field name.static final String
The HTTPConnection
header field name.static final String
The HTTPContent-Disposition
header field name.static final String
The HTTPContent-Encoding
header field name.static final String
The HTTPContent-Language
header field name.static final String
The HTTPContent-Length
header field name.static final String
The HTTPContent-Location
header field name.static final String
The HTTPContent-MD5
header field name.static final String
The HTTPContent-Range
header field name.static final String
The HTTPContent-Security-Policy
header field name.static final String
The HTTPContent-Security-Policy-Report-Only
header field name.static final String
The HTTPContent-Type
header field name.static final String
The HTTPCookie
header field name.static final String
The HTTPDate
header field name.static final String
The HTTPDNT
header field name.static final String
The HTTPETag
header field name.static final String
The HTTPExpect
header field name.static final String
The HTTPExpires
header field name.static final String
The HTTPFollow-Only-When-Prerender-Shown
header field name.static final String
The HTTPForwarded
header field name.static final String
The HTTPFrom
header field name.static final String
The HTTPHost
header field name.static final String
The HTTPIf-Match
header field name.static final String
The HTTPIf-Modified-Since
header field name.static final String
The HTTPIf-None-Match
header field name.static final String
The HTTPIf-Range
header field name.static final String
The HTTPIf-Unmodified-Since
header field name.static final String
The HTTPLast-Event-ID
header field name.static final String
The HTTPLast-Modified
header field name.static final String
The HTTPLink
header field name.static final String
The HTTPLocation
header field name.static final String
The HTTPMax-Forwards
header field name.static final String
The HTTPOrigin
header field name.static final String
The HTTPP3P
header field name.static final String
The HTTPPing-From
header field name.static final String
The HTTPPing-To
header field name.static final String
The HTTPPragma
header field name.static final String
The HTTPProxy-Authenticate
header field name.static final String
The HTTPProxy-Authorization
header field name.static final String
The HTTPPublic-Key-Pins
header field name.static final String
The HTTPPublic-Key-Pins-Report-Only
header field name.static final String
The HTTPRange
header field name.static final String
The HTTPReferer
header field name.static final String
The HTTPRefresh
header field name.static final String
The HTTPRetry-After
header field name.static final String
The HTTPServer
header field name.static final String
The HTTPService-Worker
header field name.static final String
The HTTPService-Worker-Allowed
header field name.static final String
The HTTPSet-Cookie
header field name.static final String
The HTTPSet-Cookie2
header field name.static final String
The HTTPStrict-Transport-Security
header field name.static final String
The HTTPTE
header field name.static final String
The HTTPTiming-Allow-Origin
header field name.static final String
The HTTPTrailer
header field name.static final String
The HTTPTransfer-Encoding
header field name.static final String
The HTTPUpgrade
header field name.static final String
The HTTPUser-Agent
header field name.static final String
The HTTPVary
header field name.static final String
The HTTPVia
header field name.static final String
The HTTPWarning
header field name.static final String
The HTTPWWW-Authenticate
header field name.static final String
The HTTP nonstandardX-Content-Security-Policy
header field name.static final String
The HTTP nonstandardX-Content-Security-Policy-Report-Only
header field name.static final String
The HTTPX-Content-Type-Options
header field name.static final String
The HTTPX-Do-Not-Track
header field name.static final String
The HTTPX-Forwarded-For
header field name (supersed byForwarded
).static final String
The HTTPX-Forwarded-Host
header field name.static final String
The HTTPX-Forwarded-Port
header field name.static final String
The HTTPX-Forwarded-Proto
header field name.static final String
The HTTPX-Frame-Options
header field name.static final String
The HTTPX-Powered-By
header field name.static final String
The HTTPX-Requested-With
header field name.static final String
The HTTPX-User-IP
header field name.static final String
The HTTP nonstandardX-WebKit-CSP
header field name.static final String
The HTTP nonstandardX-WebKit-CSP-Report-Only
header field name.static final String
The HTTPX-XSS-Protection
header field name. -
Method Summary
-
Field Details
-
CACHE_CONTROL
The HTTPCache-Control
header field name.- See Also:
-
CONTENT_LENGTH
The HTTPContent-Length
header field name.- See Also:
-
CONTENT_TYPE
The HTTPContent-Type
header field name.- See Also:
-
DATE
The HTTPDate
header field name.- See Also:
-
PRAGMA
The HTTPPragma
header field name.- See Also:
-
VIA
The HTTPVia
header field name.- See Also:
-
WARNING
The HTTPWarning
header field name.- See Also:
-
ACCEPT
The HTTPAccept
header field name.- See Also:
-
ACCEPT_CHARSET
The HTTPAccept-Charset
header field name.- See Also:
-
ACCEPT_ENCODING
The HTTPAccept-Encoding
header field name.- See Also:
-
ACCEPT_LANGUAGE
The HTTPAccept-Language
header field name.- See Also:
-
ACCESS_CONTROL_REQUEST_HEADERS
The HTTPAccess-Control-Request-Headers
header field name.- See Also:
-
ACCESS_CONTROL_REQUEST_METHOD
The HTTPAccess-Control-Request-Method
header field name.- See Also:
-
AUTHORIZATION
The HTTPAuthorization
header field name.- See Also:
-
CONNECTION
The HTTPConnection
header field name.- See Also:
-
COOKIE
The HTTPCookie
header field name.- See Also:
-
EXPECT
The HTTPExpect
header field name.- See Also:
-
FROM
The HTTPFrom
header field name.- See Also:
-
FORWARDED
The HTTPForwarded
header field name.- Since:
- 20.0
- See Also:
-
FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTPFollow-Only-When-Prerender-Shown
header field name.- Since:
- 17.0
- See Also:
-
HOST
The HTTPHost
header field name.- See Also:
-
IF_MATCH
The HTTPIf-Match
header field name.- See Also:
-
IF_MODIFIED_SINCE
The HTTPIf-Modified-Since
header field name.- See Also:
-
IF_NONE_MATCH
The HTTPIf-None-Match
header field name.- See Also:
-
IF_RANGE
The HTTPIf-Range
header field name.- See Also:
-
IF_UNMODIFIED_SINCE
The HTTPIf-Unmodified-Since
header field name.- See Also:
-
LAST_EVENT_ID
The HTTPLast-Event-ID
header field name.- See Also:
-
MAX_FORWARDS
The HTTPMax-Forwards
header field name.- See Also:
-
ORIGIN
The HTTPOrigin
header field name.- See Also:
-
PROXY_AUTHORIZATION
The HTTPProxy-Authorization
header field name.- See Also:
-
RANGE
The HTTPRange
header field name.- See Also:
-
REFERER
The HTTPReferer
header field name.- See Also:
-
SERVICE_WORKER
The HTTPService-Worker
header field name.- See Also:
-
TE
The HTTPTE
header field name.- See Also:
-
UPGRADE
The HTTPUpgrade
header field name.- See Also:
-
USER_AGENT
The HTTPUser-Agent
header field name.- See Also:
-
ACCEPT_RANGES
The HTTPAccept-Ranges
header field name.- See Also:
-
ACCESS_CONTROL_ALLOW_HEADERS
The HTTPAccess-Control-Allow-Headers
header field name.- See Also:
-
ACCESS_CONTROL_ALLOW_METHODS
The HTTPAccess-Control-Allow-Methods
header field name.- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
The HTTPAccess-Control-Allow-Origin
header field name.- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
The HTTPAccess-Control-Allow-Credentials
header field name.- See Also:
-
ACCESS_CONTROL_EXPOSE_HEADERS
The HTTPAccess-Control-Expose-Headers
header field name.- See Also:
-
ACCESS_CONTROL_MAX_AGE
The HTTPAccess-Control-Max-Age
header field name.- See Also:
-
AGE
The HTTPAge
header field name.- See Also:
-
ALLOW
The HTTPAllow
header field name.- See Also:
-
CONTENT_DISPOSITION
The HTTPContent-Disposition
header field name.- See Also:
-
CONTENT_ENCODING
The HTTPContent-Encoding
header field name.- See Also:
-
CONTENT_LANGUAGE
The HTTPContent-Language
header field name.- See Also:
-
CONTENT_LOCATION
The HTTPContent-Location
header field name.- See Also:
-
CONTENT_MD5
The HTTPContent-MD5
header field name.- See Also:
-
CONTENT_RANGE
The HTTPContent-Range
header field name.- See Also:
-
CONTENT_SECURITY_POLICY
The HTTPContent-Security-Policy
header field name.- Since:
- 15.0
- See Also:
-
CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTPContent-Security-Policy-Report-Only
header field name.- Since:
- 15.0
- See Also:
-
X_CONTENT_SECURITY_POLICY
The HTTP nonstandardX-Content-Security-Policy
header field name. It was introduced in CSP v.1 and used by the Firefox until version 23 and the Internet Explorer version 10. Please, useCONTENT_SECURITY_POLICY
to pass the CSP.- Since:
- 20.0
- See Also:
-
X_CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTP nonstandardX-Content-Security-Policy-Report-Only
header field name. It was introduced in CSP v.1 and used by the Firefox until version 23 and the Internet Explorer version 10. Please, useCONTENT_SECURITY_POLICY_REPORT_ONLY
to pass the CSP.- Since:
- 20.0
- See Also:
-
X_WEBKIT_CSP
The HTTP nonstandardX-WebKit-CSP
header field name. It was introduced in CSP v.1 and used by the Chrome until version 25. Please, useCONTENT_SECURITY_POLICY
to pass the CSP.- Since:
- 20.0
- See Also:
-
X_WEBKIT_CSP_REPORT_ONLY
The HTTP nonstandardX-WebKit-CSP-Report-Only
header field name. It was introduced in CSP v.1 and used by the Chrome until version 25. Please, useCONTENT_SECURITY_POLICY_REPORT_ONLY
to pass the CSP.- Since:
- 20.0
- See Also:
-
ETAG
The HTTPETag
header field name.- See Also:
-
EXPIRES
The HTTPExpires
header field name.- See Also:
-
LAST_MODIFIED
The HTTPLast-Modified
header field name.- See Also:
-
LINK
The HTTPLink
header field name.- See Also:
-
LOCATION
The HTTPLocation
header field name.- See Also:
-
P3P
The HTTPP3P
header field name. Limited browser support.- See Also:
-
PROXY_AUTHENTICATE
The HTTPProxy-Authenticate
header field name.- See Also:
-
REFRESH
The HTTPRefresh
header field name. Non-standard header supported by most browsers.- See Also:
-
RETRY_AFTER
The HTTPRetry-After
header field name.- See Also:
-
SERVER
The HTTPServer
header field name.- See Also:
-
SERVICE_WORKER_ALLOWED
The HTTPService-Worker-Allowed
header field name.- Since:
- 20.0
- See Also:
-
SET_COOKIE
The HTTPSet-Cookie
header field name.- See Also:
-
SET_COOKIE2
The HTTPSet-Cookie2
header field name.- See Also:
-
STRICT_TRANSPORT_SECURITY
The HTTPStrict-Transport-Security
header field name.- Since:
- 15.0
- See Also:
-
TIMING_ALLOW_ORIGIN
The HTTPTiming-Allow-Origin
header field name.- Since:
- 15.0
- See Also:
-
TRAILER
The HTTPTrailer
header field name.- See Also:
-
TRANSFER_ENCODING
The HTTPTransfer-Encoding
header field name.- See Also:
-
VARY
The HTTPVary
header field name.- See Also:
-
WWW_AUTHENTICATE
The HTTPWWW-Authenticate
header field name.- See Also:
-
DNT
The HTTPDNT
header field name.- See Also:
-
X_CONTENT_TYPE_OPTIONS
The HTTPX-Content-Type-Options
header field name.- See Also:
-
X_DO_NOT_TRACK
The HTTPX-Do-Not-Track
header field name.- See Also:
-
X_FORWARDED_FOR
The HTTPX-Forwarded-For
header field name (supersed byForwarded
).- See Also:
-
X_FORWARDED_PROTO
The HTTPX-Forwarded-Proto
header field name.- See Also:
-
X_FORWARDED_HOST
The HTTPX-Forwarded-Host
header field name.- Since:
- 20.0
- See Also:
-
X_FORWARDED_PORT
The HTTPX-Forwarded-Port
header field name.- Since:
- 20.0
- See Also:
-
X_FRAME_OPTIONS
The HTTPX-Frame-Options
header field name.- See Also:
-
X_POWERED_BY
The HTTPX-Powered-By
header field name.- See Also:
-
PUBLIC_KEY_PINS
The HTTPPublic-Key-Pins
header field name.- Since:
- 15.0
- See Also:
-
PUBLIC_KEY_PINS_REPORT_ONLY
The HTTPPublic-Key-Pins-Report-Only
header field name.- Since:
- 15.0
- See Also:
-
X_REQUESTED_WITH
The HTTPX-Requested-With
header field name.- See Also:
-
X_USER_IP
The HTTPX-User-IP
header field name.- See Also:
-
X_XSS_PROTECTION
The HTTPX-XSS-Protection
header field name.- See Also:
-
PING_FROM
The HTTPPing-From
header field name.- Since:
- 19.0
- See Also:
-
PING_TO
The HTTPPing-To
header field name.- Since:
- 19.0
- See Also:
-