public interface HttpRequestHeader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Accept
Content-Types that are acceptable for the response.
|
static java.lang.String |
AcceptCharset
Character sets that are acceptable.
|
static java.lang.String |
AcceptDatetime
Acceptable version in time.
|
static java.lang.String |
AcceptEncoding
List of acceptable encodings.
|
static java.lang.String |
AcceptLanguage
List of acceptable human languages for response.
|
static java.lang.String |
Authorization
Authentication credentials for HTTP authentication.
|
static java.lang.String |
CacheControl
Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
|
static java.lang.String |
Connection
What type of connection the user-agent would prefer.
|
static java.lang.String |
ContentLength
The length of the request body in octets (8-bit bytes).
|
static java.lang.String |
ContentMD5
A Base64-encoded binary MD5 sum of the content of the request body.
|
static java.lang.String |
ContentType
The MIME type of the body of the request (used with POST and PUT requests).
|
static java.lang.String |
Cookie
An HTTP cookie previously sent by the server with Set-Cookie (below).
|
static java.lang.String |
Date
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).
|
static java.lang.String |
Expect
Indicates that particular server behaviors are required by the client.
|
static java.lang.String |
From
The email address of the user making the request.
|
static java.lang.String |
Host
The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening.
|
static java.lang.String |
IfMatch
Only perform the action if the client supplied entity matches the same entity on the server.
|
static java.lang.String |
IfModifiedSince
Allows a 304 Not Modified to be returned if content is unchanged.
|
static java.lang.String |
IfNoneMatch
Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag.
|
static java.lang.String |
IfRange
If the entity is unchanged, send me the part(s) that I am missing=""; otherwise, send me the entire new entity.
|
static java.lang.String |
IfUnmodifiedSince
Only send the response if the entity has not been modified since a specific time.
|
static java.lang.String |
MaxForwards
Limit the number of times the message can be forwarded through proxies or gateways.
|
static java.lang.String |
Origin
Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field).
|
static java.lang.String |
Pragma
Implementation-specific fields that may have various effects anywhere along the request-response chain.
|
static java.lang.String |
ProxyAuthorization
Authorization credentials for connecting to a proxy.
|
static java.lang.String |
Range
Request only part of an entity.
|
static java.lang.String |
Referer
This is the address of the previous web page from which a link to the currently requested page was followed.
|
static java.lang.String |
TE
The transfer encodings the user agent is willing to accept: the same values as for the response header field
Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the server it
expects to receive additional fields in the trailer after the last, zero-sized, chunk.
|
static java.lang.String |
Upgrade
Ask the server to upgrade to another protocol.
|
static java.lang.String |
UserAgent
The user agent string of the user agent.
|
static java.lang.String |
Via
Informs the server of proxies through which the request was sent.
|
static java.lang.String |
Warning
A general warning about possible problems with the entity body.
|
static final java.lang.String Accept
Example: Accept: text/plain
static final java.lang.String AcceptCharset
Example: Accept-Charset: utf-8
static final java.lang.String AcceptEncoding
Example: Accept-Encoding: gzip, deflate
static final java.lang.String AcceptLanguage
Example: Accept-Language: en-US
static final java.lang.String AcceptDatetime
Example: Accept-Datetime: Thu, 31 May 2007 20:35:00 GMT
static final java.lang.String Authorization
Example: Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
static final java.lang.String CacheControl
Example: Cache-Control: no-cache
static final java.lang.String Connection
Example: Connection: keep-alive
static final java.lang.String Cookie
Example: Cookie: $Version=1=""; Skin=new="";
static final java.lang.String ContentLength
Example: Content-Length: 348
static final java.lang.String ContentMD5
Example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==
static final java.lang.String ContentType
Example: Content-Type: application/x-www-form-urlencoded
static final java.lang.String Date
Example: Date: Tue, 15 Nov 1994 08:12:31 GMT
static final java.lang.String Expect
Example: Expect: 100-continue
static final java.lang.String From
Example: From: user@example.com
static final java.lang.String Host
Example: en.wikipedia.org
static final java.lang.String IfMatch
Example: If-Match: "737060cd8c284d8af7ad3082f209582d"
static final java.lang.String IfModifiedSince
Example: If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
static final java.lang.String IfNoneMatch
Example: If-None-Match: "737060cd8c284d8af7ad3082f209582d"
static final java.lang.String IfRange
Example: If-Range: "737060cd8c284d8af7ad3082f209582d"
static final java.lang.String IfUnmodifiedSince
Example: If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
static final java.lang.String MaxForwards
Example: Max-Forwards: 10
static final java.lang.String Origin
Example: Origin: http://www.example-social-network.com
static final java.lang.String Pragma
Example: Pragma: no-cache
static final java.lang.String ProxyAuthorization
Example: Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
static final java.lang.String Range
Example: Range: bytes=500-999
static final java.lang.String Referer
Example: Referer: http://en.wikipedia.org/wiki/Main_Page
static final java.lang.String TE
Example: TE: trailers, deflate
static final java.lang.String UserAgent
Example: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/21.0
static final java.lang.String Upgrade
Example: Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
static final java.lang.String Via
Example: Via: 1.0 fred, 1.1 example.com (Apache/1.1)
static final java.lang.String Warning
Example: Warning: 199 Miscellaneous warning