Class HttpHeaders
java.lang.Object
com.github.mjeanroy.junit.servers.client.HttpHeaders
Set of constants and utilities for HTTP headers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
TheAccept
header name.static final String
TheAccept-Encoding
header name.static final String
TheAccept-Language
header name.static final String
TheCache-Control
header name.static final String
TheContent-Disposition
header name.static final String
TheContent-Encoding
header name.static final String
TheContent-Security-Policy
header name.static final String
TheContent-Type
header name.static final String
TheCookie
header name.static final String
TheETag
header name.static final String
TheIf-Match
header name.static final String
TheIf-Modified-Since
header name.static final String
TheIf-None-Match
header name.static final String
TheIf-Unmodified-Since
header name.static final String
TheLast-Modified
header name.static final String
TheLocation
header name.static final String
TheOrigin
header name.static final String
TheReferer
header name.static final String
TheX-Requested-With
header name: this is non-standard header but is generally used by libraries and frameworks (such as jQuery) to give information about the HTTP request.static final String
TheSet-Cookie
header name.static final String
TheStrict-Transport-Security
header name.static final String
TheUser-Agent
header name.static final String
TheX-Content-Security-Policy
header name: this is a non-official / non-standard header name for theContent-Security-Policy
specification and was implemented in browsers before the standard CSP header.static final String
TheX-Content-Type-Options
header name.static final String
TheX-Csrf-Token
header name.static final String
TheX-Http-Method-Override
header name: this is non-standard header but is generally used by libraries and frameworks to override the method specified in the template.static final String
TheX-Content-Security-Policy
header name: this is a non-official / non-standard header name for theContent-Security-Policy
specification and was implemented in webkit browsers before the standard CSP header.static final String
TheX-XSS-Protection
header name.static final String
The value forREQUESTED_WITH
header used by Web libraries such as jQuery. -
Method Summary
-
Field Details
-
ETAG
TheETag
header name. -
CONTENT_TYPE
TheContent-Type
header name. -
CONTENT_DISPOSITION
TheContent-Disposition
header name. -
CONTENT_ENCODING
TheContent-Encoding
header name. -
ACCEPT_LANGUAGE
TheAccept-Language
header name. -
ACCEPT_ENCODING
TheAccept-Encoding
header name. -
ORIGIN
TheOrigin
header name. -
REFERER
TheReferer
header name. -
LOCATION
TheLocation
header name. -
CACHE_CONTROL
TheCache-Control
header name. -
LAST_MODIFIED
TheLast-Modified
header name. -
USER_AGENT
TheUser-Agent
header name. -
ACCEPT
TheAccept
header name. -
COOKIE
TheCookie
header name. -
SET_COOKIE
TheSet-Cookie
header name. -
IF_NONE_MATCH
TheIf-None-Match
header name. -
IF_MATCH
TheIf-Match
header name. -
IF_MODIFIED_SINCE
TheIf-Modified-Since
header name. -
IF_UNMODIFIED_SINCE
TheIf-Unmodified-Since
header name. -
STRICT_TRANSPORT_SECURITY
TheStrict-Transport-Security
header name. -
CONTENT_SECURITY_POLICY
TheContent-Security-Policy
header name. -
X_CONTENT_SECURITY_POLICY
TheX-Content-Security-Policy
header name: this is a non-official / non-standard header name for theContent-Security-Policy
specification and was implemented in browsers before the standard CSP header. It was used by Firefox until version 23, and Internet Explorer version 10 (which partially implements Content Security Policy). -
X_WEBKIT_CSP
TheX-Content-Security-Policy
header name: this is a non-official / non-standard header name for theContent-Security-Policy
specification and was implemented in webkit browsers before the standard CSP header. It was used by Used by Chrome until version 25. -
X_CONTENT_TYPE_OPTIONS
TheX-Content-Type-Options
header name. This is a non-standard header, but is implemented and used in all "modern" browsers. -
X_XSS_PROTECTION
TheX-XSS-Protection
header name. This is a non-standard header, but is implemented and used in all "modern" browsers. -
REQUESTED_WITH
TheX-Requested-With
header name: this is non-standard header but is generally used by libraries and frameworks (such as jQuery) to give information about the HTTP request.- See Also:
-
X_HTTP_METHOD_OVERRIDE
TheX-Http-Method-Override
header name: this is non-standard header but is generally used by libraries and frameworks to override the method specified in the template. This can be used when a user agent or firewall prevents PUT or DELETE methods from being sent directly.- See Also:
-
X_CSRF_TOKEN
TheX-Csrf-Token
header name. This header is generally used to prevent CSRF attack and should be added inPOST
,PUT
orDELETE
requests.- See Also:
-
XML_HTTP_REQUEST
The value forREQUESTED_WITH
header used by Web libraries such as jQuery.- See Also:
-