public interface HttpResponseHeader
Modifier and Type | Field and Description |
---|---|
static String |
AcceptRanges
What partial content range types this server supports.
|
static String |
AccessControlAllowOrigin
Specifying which web sites can participate in cross-origin resource sharing.
|
static String |
Age
The age the object has been in a proxy cache in seconds.
|
static String |
Allow
Valid actions for a specified resource.
|
static String |
CacheControl
Tells all caching mechanisms from server to client whether they may cache this object.
|
static String |
Connection
Options that are desired for the connection.
|
static String |
ContentDisposition
An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for
dynamic content.
|
static String |
ContentEncoding
The type of encoding used on the data.
|
static String |
ContentLanguage
The language the content is in.
|
static String |
ContentLength
The length of the response body in octets (8-bit bytes).
|
static String |
ContentLocation
An alternate location for the returned data.
|
static String |
ContentMD5
A Base64-encoded binary MD5 sum of the content of the response.
|
static String |
ContentRange
Where in a full body message this partial message belongs.
|
static String |
ContentType
The MIME type of this content.
|
static String |
Date
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).
|
static String |
ETag
An identifier for a specific version of a resource, often a message digest.
|
static String |
Expires
Gives the date/time after which the response is considered stale.
|
static String |
LastModified
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231).
|
static String |
Link
Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988.
|
static String |
Location
Used in redirection, or when a new resource has been created.
|
static String |
P3P
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy".
|
static String |
Pragma
Implementation-specific fields that may have various effects anywhere along the request-response chain.
|
static String |
ProxyAuthenticate
Request authentication to access the proxy.
|
static String |
Refresh
Used in redirection, or when a new resource has been created.
|
static String |
RetryAfter
If an entity is temporarily unavailable, this instructs the client to try again later.
|
static String |
Server
A name for the server.
|
static String |
SetCookie
An HTTP cookie.
|
static String |
Status
CGI header field specifying the status of the HTTP response.
|
static String |
StrictTransportSecurity
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.
|
static String |
Trailer
The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded
with chunked transfer coding.
|
static String |
TransferEncoding
The form of encoding used to safely transfer the entity to the user.
|
static String |
Upgrade
Ask the client to upgrade to another protocol.
|
static String |
Vary
Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than
requesting a fresh one from the origin server.
|
static String |
Via
Informs the client of proxies through which the response was sent.
|
static String |
Warning
A general warning about possible problems with the entity body.
|
static String |
WWWAuthenticate
Indicates the authentication scheme that should be used to access the requested entity.
|
static final String AccessControlAllowOrigin
Example: Access-Control-Allow-Origin: *
static final String AcceptRanges
Example: Accept-Ranges: bytes
static final String Age
Example: Age: 12
static final String Allow
Example: Allow: GET, HEAD
static final String CacheControl
Example: Cache-Control: max-age=3600
static final String Connection
Example: Connection: close
static final String ContentEncoding
Example: Content-Encoding: gzip
static final String ContentLanguage
Example: Content-Language: da
static final String ContentLength
Example: Content-Length: 348
static final String ContentLocation
Example: Content-Location: /index.htm
static final String ContentMD5
Example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==
static final String ContentDisposition
Example: Content-Disposition: attachment; filename="fname.ext"
static final String ContentRange
Example: Content-Range: bytes 21010-47021/47022
static final String ContentType
Example: Content-Type: text/html; charset=utf-8
static final String Date
Example: Date: Tue, 15 Nov 1994 08:12:31 GMT
static final String ETag
Example: ETag: "737060cd8c284d8af7ad3082f209582d"
static final String Expires
Example: Expires: Thu, 01 Dec 1994 16:00:00 GMT
static final String LastModified
Example: Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
static final String Link
Example: Link: ; rel="alternate"
static final String Location
Example: Location: http://www.w3.org/pub/WWW/People.html
static final String P3P
Example: P3P: CP= "This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
static final String Pragma
Example: Pragma: no-cache
static final String ProxyAuthenticate
Example: Proxy-Authenticate: Basic
static final String Refresh
Example: Refresh: 5; url=http://www.w3.org/pub/WWW/People.html
static final String RetryAfter
Example: Example 1: Retry-After: 120Example 2: Retry-After: Fri, 07 Nov 2014 23:59:59 GMT
static final String Server
Example: Server: Apache/2.4.1 (Unix)
static final String SetCookie
Example: Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1
static final String Status
Example: Status: 200 OK
static final String StrictTransportSecurity
Example: Strict-Transport-Security: max-age=16070400; includeSubDomains
static final String Trailer
Example: Trailer: Max-Forwards
static final String TransferEncoding
Example: Transfer-Encoding: chunked
static final String Upgrade
Example: Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
static final String Vary
Example: Vary: *
static final String Via
Example: Via: 1.0 fred, 1.1 example.com (Apache/1.1)
static final String Warning
Example: Warning: 199 Miscellaneous warning
static final String WWWAuthenticate
Example: WWW-Authenticate: Basic
Copyright © 2014. All rights reserved.