public final class HttpHeaders extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT
The
Accept header name. |
static String |
ACCEPT_ENCODING
The
Accept-Encoding header name. |
static String |
ACCEPT_LANGUAGE
The
Accept-Language header name. |
static String |
APPLICATION_FORM_URL_ENCODED
The media type for HTML forms.
|
static String |
APPLICATION_JSON
The JSON media type.
|
static String |
APPLICATION_XML
The XML media type.
|
static String |
CACHE_CONTROL
The
Cache-Control header name. |
static String |
CONTENT_ENCODING
The
Content-Encoding header name. |
static String |
CONTENT_SECURITY_POLICY
The
Content-Security-Policy header name. |
static String |
CONTENT_TYPE
The
Content-Type header name. |
static String |
COOKIE
The
Cookie header name. |
static String |
ETAG
The
ETag header name. |
static String |
IF_MATCH
The
If-Match header name. |
static String |
IF_MODIFIED_SINCE
The
If-Modified-Since header name. |
static String |
IF_NONE_MATCH
The
If-None-Match header name. |
static String |
IF_UNMODIFIED_SINCE
The
If-Unmodified-Since header name. |
static String |
LAST_MODIFIED
The
Last-Modified header name. |
static String |
LOCATION
The
Location header name. |
static String |
MULTIPART_FORM_DATA
The media type for file upload.
|
static String |
ORIGIN
The
Origin header name. |
static String |
REFERER
The
Referer header name. |
static String |
REQUESTED_WITH
The
X-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 String |
SET_COOKIE
The
Set-Cookie header name. |
static String |
STRICT_TRANSPORT_SECURITY
The
Strict-Transport-Security header name. |
static String |
USER_AGENT
The
User-Agent header name. |
static String |
X_CONTENT_SECURITY_POLICY
The
X-Content-Security-Policy header name: this is a non-official / non-standard header name for
the Content-Security-Policy specification and was implemented in browsers before the standard
CSP header. |
static String |
X_CONTENT_TYPE_OPTIONS
The
X-Content-Type-Options header name. |
static String |
X_CSRF_TOKEN
The
X-Csrf-Token header name. |
static String |
X_HTTP_METHOD_OVERRIDE
The
X-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 String |
X_WEBKIT_CSP
The
X-Content-Security-Policy header name: this is a non-official / non-standard header name for
the Content-Security-Policy specification and was implemented in webkit browsers before the standard
CSP header. |
static String |
X_XSS_PROTECTION
The
X-XSS-Protection header name. |
static String |
XML_HTTP_REQUEST
The value for
REQUESTED_WITH header used by Web libraries such as jQuery. |
public static final String ETAG
ETag header name.public static final String CONTENT_TYPE
Content-Type header name.public static final String CONTENT_ENCODING
Content-Encoding header name.public static final String ACCEPT_LANGUAGE
Accept-Language header name.public static final String ACCEPT_ENCODING
Accept-Encoding header name.public static final String ORIGIN
Origin header name.public static final String REFERER
Referer header name.public static final String LOCATION
Location header name.public static final String CACHE_CONTROL
Cache-Control header name.public static final String LAST_MODIFIED
Last-Modified header name.public static final String USER_AGENT
User-Agent header name.public static final String ACCEPT
Accept header name.public static final String COOKIE
Cookie header name.public static final String SET_COOKIE
Set-Cookie header name.public static final String IF_NONE_MATCH
If-None-Match header name.public static final String IF_MATCH
If-Match header name.public static final String IF_MODIFIED_SINCE
If-Modified-Since header name.public static final String IF_UNMODIFIED_SINCE
If-Unmodified-Since header name.public static final String STRICT_TRANSPORT_SECURITY
Strict-Transport-Security header name.public static final String CONTENT_SECURITY_POLICY
Content-Security-Policy header name.public static final String X_CONTENT_SECURITY_POLICY
X-Content-Security-Policy header name: this is a non-official / non-standard header name for
the Content-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).public static final String X_WEBKIT_CSP
X-Content-Security-Policy header name: this is a non-official / non-standard header name for
the Content-Security-Policy specification and was implemented in webkit browsers before the standard
CSP header. It was used by Used by Chrome until version 25.public static final String X_CONTENT_TYPE_OPTIONS
X-Content-Type-Options header name. This is a non-standard header, but is implemented and used
in all "modern" browsers.public static final String X_XSS_PROTECTION
X-XSS-Protection header name. This is a non-standard header, but is implemented and used
in all "modern" browsers.public static final String REQUESTED_WITH
X-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.public static final String X_HTTP_METHOD_OVERRIDE
X-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.public static final String X_CSRF_TOKEN
X-Csrf-Token header name.
This header is generally used to prevent CSRF attack and should be added in POST, PUT or DELETE
requests.public static final String XML_HTTP_REQUEST
REQUESTED_WITH header used by Web libraries such as jQuery.public static final String APPLICATION_JSON
public static final String APPLICATION_XML
public static final String APPLICATION_FORM_URL_ENCODED
public static final String MULTIPART_FORM_DATA
Copyright © 2018. All rights reserved.