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