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 StringThe HTTPAcceptheader field name.static final StringThe HTTPAccept-Charsetheader field name.static final StringThe HTTPAccept-Encodingheader field name.static final StringThe HTTPAccept-Languageheader field name.static final StringThe HTTPAccept-Rangesheader field name.static final StringThe HTTPAccess-Control-Allow-Credentialsheader field name.static final StringThe HTTPAccess-Control-Allow-Headersheader field name.static final StringThe HTTPAccess-Control-Allow-Methodsheader field name.static final StringThe HTTPAccess-Control-Allow-Originheader field name.static final StringThe HTTPAccess-Control-Expose-Headersheader field name.static final StringThe HTTPAccess-Control-Max-Ageheader field name.static final StringThe HTTPAccess-Control-Request-Headersheader field name.static final StringThe HTTPAccess-Control-Request-Methodheader field name.static final StringThe HTTPAgeheader field name.static final StringThe HTTPAllowheader field name.static final StringThe HTTPAuthorizationheader field name.static final StringThe HTTPCache-Controlheader field name.static final StringThe HTTPConnectionheader field name.static final StringThe HTTPContent-Dispositionheader field name.static final StringThe HTTPContent-Encodingheader field name.static final StringThe HTTPContent-Languageheader field name.static final StringThe HTTPContent-Lengthheader field name.static final StringThe HTTPContent-Locationheader field name.static final StringThe HTTPContent-MD5header field name.static final StringThe HTTPContent-Rangeheader field name.static final StringThe HTTPContent-Security-Policyheader field name.static final StringThe HTTPContent-Security-Policy-Report-Onlyheader field name.static final StringThe HTTPContent-Typeheader field name.static final StringThe HTTPCookieheader field name.static final StringThe HTTPDateheader field name.static final StringThe HTTPDNTheader field name.static final StringThe HTTPETagheader field name.static final StringThe HTTPExpectheader field name.static final StringThe HTTPExpiresheader field name.static final StringThe HTTPFollow-Only-When-Prerender-Shownheader field name.static final StringThe HTTPForwardedheader field name.static final StringThe HTTPFromheader field name.static final StringThe HTTPHostheader field name.static final StringThe HTTPIf-Matchheader field name.static final StringThe HTTPIf-Modified-Sinceheader field name.static final StringThe HTTPIf-None-Matchheader field name.static final StringThe HTTPIf-Rangeheader field name.static final StringThe HTTPIf-Unmodified-Sinceheader field name.static final StringThe HTTPLast-Event-IDheader field name.static final StringThe HTTPLast-Modifiedheader field name.static final StringThe HTTPLinkheader field name.static final StringThe HTTPLocationheader field name.static final StringThe HTTPMax-Forwardsheader field name.static final StringThe HTTPOriginheader field name.static final StringThe HTTPP3Pheader field name.static final StringThe HTTPPing-Fromheader field name.static final StringThe HTTPPing-Toheader field name.static final StringThe HTTPPragmaheader field name.static final StringThe HTTPProxy-Authenticateheader field name.static final StringThe HTTPProxy-Authorizationheader field name.static final StringThe HTTPPublic-Key-Pinsheader field name.static final StringThe HTTPPublic-Key-Pins-Report-Onlyheader field name.static final StringThe HTTPRangeheader field name.static final StringThe HTTPRefererheader field name.static final StringThe HTTPRefreshheader field name.static final StringThe HTTPRetry-Afterheader field name.static final StringThe HTTPServerheader field name.static final StringThe HTTPService-Workerheader field name.static final StringThe HTTPService-Worker-Allowedheader field name.static final StringThe HTTPSet-Cookieheader field name.static final StringThe HTTPSet-Cookie2header field name.static final StringThe HTTPStrict-Transport-Securityheader field name.static final StringThe HTTPTEheader field name.static final StringThe HTTPTiming-Allow-Originheader field name.static final StringThe HTTPTrailerheader field name.static final StringThe HTTPTransfer-Encodingheader field name.static final StringThe HTTPUpgradeheader field name.static final StringThe HTTPUser-Agentheader field name.static final StringThe HTTPVaryheader field name.static final StringThe HTTPViaheader field name.static final StringThe HTTPWarningheader field name.static final StringThe HTTPWWW-Authenticateheader field name.static final StringThe HTTP nonstandardX-Content-Security-Policyheader field name.static final StringThe HTTP nonstandardX-Content-Security-Policy-Report-Onlyheader field name.static final StringThe HTTPX-Content-Type-Optionsheader field name.static final StringThe HTTPX-Do-Not-Trackheader field name.static final StringThe HTTPX-Forwarded-Forheader field name (supersed byForwarded).static final StringThe HTTPX-Forwarded-Hostheader field name.static final StringThe HTTPX-Forwarded-Portheader field name.static final StringThe HTTPX-Forwarded-Protoheader field name.static final StringThe HTTPX-Frame-Optionsheader field name.static final StringThe HTTPX-Powered-Byheader field name.static final StringThe HTTPX-Requested-Withheader field name.static final StringThe HTTPX-User-IPheader field name.static final StringThe HTTP nonstandardX-WebKit-CSPheader field name.static final StringThe HTTP nonstandardX-WebKit-CSP-Report-Onlyheader field name.static final StringThe HTTPX-XSS-Protectionheader field name. -
Method Summary
-
Field Details
-
CACHE_CONTROL
The HTTPCache-Controlheader field name.- See Also:
-
CONTENT_LENGTH
The HTTPContent-Lengthheader field name.- See Also:
-
CONTENT_TYPE
The HTTPContent-Typeheader field name.- See Also:
-
DATE
The HTTPDateheader field name.- See Also:
-
PRAGMA
The HTTPPragmaheader field name.- See Also:
-
VIA
The HTTPViaheader field name.- See Also:
-
WARNING
The HTTPWarningheader field name.- See Also:
-
ACCEPT
The HTTPAcceptheader field name.- See Also:
-
ACCEPT_CHARSET
The HTTPAccept-Charsetheader field name.- See Also:
-
ACCEPT_ENCODING
The HTTPAccept-Encodingheader field name.- See Also:
-
ACCEPT_LANGUAGE
The HTTPAccept-Languageheader field name.- See Also:
-
ACCESS_CONTROL_REQUEST_HEADERS
The HTTPAccess-Control-Request-Headersheader field name.- See Also:
-
ACCESS_CONTROL_REQUEST_METHOD
The HTTPAccess-Control-Request-Methodheader field name.- See Also:
-
AUTHORIZATION
The HTTPAuthorizationheader field name.- See Also:
-
CONNECTION
The HTTPConnectionheader field name.- See Also:
-
COOKIE
The HTTPCookieheader field name.- See Also:
-
EXPECT
The HTTPExpectheader field name.- See Also:
-
FROM
The HTTPFromheader field name.- See Also:
-
FORWARDED
The HTTPForwardedheader field name.- Since:
- 20.0
- See Also:
-
FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTPFollow-Only-When-Prerender-Shownheader field name.- Since:
- 17.0
- See Also:
-
HOST
The HTTPHostheader field name.- See Also:
-
IF_MATCH
The HTTPIf-Matchheader field name.- See Also:
-
IF_MODIFIED_SINCE
The HTTPIf-Modified-Sinceheader field name.- See Also:
-
IF_NONE_MATCH
The HTTPIf-None-Matchheader field name.- See Also:
-
IF_RANGE
The HTTPIf-Rangeheader field name.- See Also:
-
IF_UNMODIFIED_SINCE
The HTTPIf-Unmodified-Sinceheader field name.- See Also:
-
LAST_EVENT_ID
The HTTPLast-Event-IDheader field name.- See Also:
-
MAX_FORWARDS
The HTTPMax-Forwardsheader field name.- See Also:
-
ORIGIN
The HTTPOriginheader field name.- See Also:
-
PROXY_AUTHORIZATION
The HTTPProxy-Authorizationheader field name.- See Also:
-
RANGE
The HTTPRangeheader field name.- See Also:
-
REFERER
The HTTPRefererheader field name.- See Also:
-
SERVICE_WORKER
The HTTPService-Workerheader field name.- See Also:
-
TE
The HTTPTEheader field name.- See Also:
-
UPGRADE
The HTTPUpgradeheader field name.- See Also:
-
USER_AGENT
The HTTPUser-Agentheader field name.- See Also:
-
ACCEPT_RANGES
The HTTPAccept-Rangesheader field name.- See Also:
-
ACCESS_CONTROL_ALLOW_HEADERS
The HTTPAccess-Control-Allow-Headersheader field name.- See Also:
-
ACCESS_CONTROL_ALLOW_METHODS
The HTTPAccess-Control-Allow-Methodsheader field name.- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
The HTTPAccess-Control-Allow-Originheader field name.- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
The HTTPAccess-Control-Allow-Credentialsheader field name.- See Also:
-
ACCESS_CONTROL_EXPOSE_HEADERS
The HTTPAccess-Control-Expose-Headersheader field name.- See Also:
-
ACCESS_CONTROL_MAX_AGE
The HTTPAccess-Control-Max-Ageheader field name.- See Also:
-
AGE
The HTTPAgeheader field name.- See Also:
-
ALLOW
The HTTPAllowheader field name.- See Also:
-
CONTENT_DISPOSITION
The HTTPContent-Dispositionheader field name.- See Also:
-
CONTENT_ENCODING
The HTTPContent-Encodingheader field name.- See Also:
-
CONTENT_LANGUAGE
The HTTPContent-Languageheader field name.- See Also:
-
CONTENT_LOCATION
The HTTPContent-Locationheader field name.- See Also:
-
CONTENT_MD5
The HTTPContent-MD5header field name.- See Also:
-
CONTENT_RANGE
The HTTPContent-Rangeheader field name.- See Also:
-
CONTENT_SECURITY_POLICY
The HTTPContent-Security-Policyheader field name.- Since:
- 15.0
- See Also:
-
CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTPContent-Security-Policy-Report-Onlyheader field name.- Since:
- 15.0
- See Also:
-
X_CONTENT_SECURITY_POLICY
The HTTP nonstandardX-Content-Security-Policyheader 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_POLICYto pass the CSP.- Since:
- 20.0
- See Also:
-
X_CONTENT_SECURITY_POLICY_REPORT_ONLY
The HTTP nonstandardX-Content-Security-Policy-Report-Onlyheader 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_ONLYto pass the CSP.- Since:
- 20.0
- See Also:
-
X_WEBKIT_CSP
The HTTP nonstandardX-WebKit-CSPheader field name. It was introduced in CSP v.1 and used by the Chrome until version 25. Please, useCONTENT_SECURITY_POLICYto pass the CSP.- Since:
- 20.0
- See Also:
-
X_WEBKIT_CSP_REPORT_ONLY
The HTTP nonstandardX-WebKit-CSP-Report-Onlyheader field name. It was introduced in CSP v.1 and used by the Chrome until version 25. Please, useCONTENT_SECURITY_POLICY_REPORT_ONLYto pass the CSP.- Since:
- 20.0
- See Also:
-
ETAG
The HTTPETagheader field name.- See Also:
-
EXPIRES
The HTTPExpiresheader field name.- See Also:
-
LAST_MODIFIED
The HTTPLast-Modifiedheader field name.- See Also:
-
LINK
The HTTPLinkheader field name.- See Also:
-
LOCATION
The HTTPLocationheader field name.- See Also:
-
P3P
The HTTPP3Pheader field name. Limited browser support.- See Also:
-
PROXY_AUTHENTICATE
The HTTPProxy-Authenticateheader field name.- See Also:
-
REFRESH
The HTTPRefreshheader field name. Non-standard header supported by most browsers.- See Also:
-
RETRY_AFTER
The HTTPRetry-Afterheader field name.- See Also:
-
SERVER
The HTTPServerheader field name.- See Also:
-
SERVICE_WORKER_ALLOWED
The HTTPService-Worker-Allowedheader field name.- Since:
- 20.0
- See Also:
-
SET_COOKIE
The HTTPSet-Cookieheader field name.- See Also:
-
SET_COOKIE2
The HTTPSet-Cookie2header field name.- See Also:
-
STRICT_TRANSPORT_SECURITY
The HTTPStrict-Transport-Securityheader field name.- Since:
- 15.0
- See Also:
-
TIMING_ALLOW_ORIGIN
The HTTPTiming-Allow-Originheader field name.- Since:
- 15.0
- See Also:
-
TRAILER
The HTTPTrailerheader field name.- See Also:
-
TRANSFER_ENCODING
The HTTPTransfer-Encodingheader field name.- See Also:
-
VARY
The HTTPVaryheader field name.- See Also:
-
WWW_AUTHENTICATE
The HTTPWWW-Authenticateheader field name.- See Also:
-
DNT
The HTTPDNTheader field name.- See Also:
-
X_CONTENT_TYPE_OPTIONS
The HTTPX-Content-Type-Optionsheader field name.- See Also:
-
X_DO_NOT_TRACK
The HTTPX-Do-Not-Trackheader field name.- See Also:
-
X_FORWARDED_FOR
The HTTPX-Forwarded-Forheader field name (supersed byForwarded).- See Also:
-
X_FORWARDED_PROTO
The HTTPX-Forwarded-Protoheader field name.- See Also:
-
X_FORWARDED_HOST
The HTTPX-Forwarded-Hostheader field name.- Since:
- 20.0
- See Also:
-
X_FORWARDED_PORT
The HTTPX-Forwarded-Portheader field name.- Since:
- 20.0
- See Also:
-
X_FRAME_OPTIONS
The HTTPX-Frame-Optionsheader field name.- See Also:
-
X_POWERED_BY
The HTTPX-Powered-Byheader field name.- See Also:
-
PUBLIC_KEY_PINS
The HTTPPublic-Key-Pinsheader field name.- Since:
- 15.0
- See Also:
-
PUBLIC_KEY_PINS_REPORT_ONLY
The HTTPPublic-Key-Pins-Report-Onlyheader field name.- Since:
- 15.0
- See Also:
-
X_REQUESTED_WITH
The HTTPX-Requested-Withheader field name.- See Also:
-
X_USER_IP
The HTTPX-User-IPheader field name.- See Also:
-
X_XSS_PROTECTION
The HTTPX-XSS-Protectionheader field name.- See Also:
-
PING_FROM
The HTTPPing-Fromheader field name.- Since:
- 19.0
- See Also:
-
PING_TO
The HTTPPing-Toheader field name.- Since:
- 19.0
- See Also:
-