APIdia Launch Partner
Top Description Fields
com.badlogic.gdx.net

public Interface HttpRequestHeader


A list of common request header constants of the HTTP protocol. See http://en.wikipedia.org/wiki/List_of_HTTP_header_fields.
Author
Daniel Holderbaum

Field Summary

Modifier and TypeField and Description
public static final String
Accept

Content-Types that are acceptable for the response.

public static final String
AcceptCharset

Character sets that are acceptable.

public static final String
AcceptDatetime

Acceptable version in time.

public static final String
AcceptEncoding

List of acceptable encodings.

public static final String
AcceptLanguage

List of acceptable human languages for response.

public static final String
Authorization

Authentication credentials for HTTP authentication.

public static final String
CacheControl

Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.

public static final String
Connection

What type of connection the user-agent would prefer.

public static final String
ContentLength

The length of the request body in octets (8-bit bytes).

public static final String
ContentMD5

A Base64-encoded binary MD5 sum of the content of the request body.

public static final String
ContentType

The MIME type of the body of the request (used with POST and PUT requests).

public static final String
Cookie

An HTTP cookie previously sent by the server with Set-Cookie (below).

public static final String
Date

The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).

public static final String
Expect

Indicates that particular server behaviors are required by the client.

public static final String
From

The email address of the user making the request.

public static final String
Host

The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening.

public static final String
IfMatch

Only perform the action if the client supplied entity matches the same entity on the server.

public static final String
IfModifiedSince

Allows a 304 Not Modified to be returned if content is unchanged.

public static final String
IfNoneMatch

Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag.

public static final String
IfRange

If the entity is unchanged, send me the part(s) that I am missing=""; otherwise, send me the entire new entity.

public static final String
IfUnmodifiedSince

Only send the response if the entity has not been modified since a specific time.

public static final String
MaxForwards

Limit the number of times the message can be forwarded through proxies or gateways.

public static final String
Origin

Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field).

public static final String
Pragma

Implementation-specific fields that may have various effects anywhere along the request-response chain.

public static final String
ProxyAuthorization

Authorization credentials for connecting to a proxy.

public static final String
Range

Request only part of an entity.

public static final String
Referer

This is the address of the previous web page from which a link to the currently requested page was followed.

public static final 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.

public static final String
Upgrade

Ask the server to upgrade to another protocol.

public static final String
UserAgent

The user agent string of the user agent.

public static final String
Via

Informs the server of proxies through which the request was sent.

public static final String
Warning

A general warning about possible problems with the entity body.

Field Detail

Acceptback to summary
public static final String Accept

Content-Types that are acceptable for the response.

Example: Accept: text/plain

AcceptCharsetback to summary
public static final String AcceptCharset

Character sets that are acceptable.

Example: Accept-Charset: utf-8

AcceptDatetimeback to summary
public static final String AcceptDatetime

Acceptable version in time.

Example: Accept-Datetime: Thu, 31 May 2007 20:35:00 GMT

AcceptEncodingback to summary
public static final String AcceptEncoding

List of acceptable encodings.

Example: Accept-Encoding: gzip, deflate

AcceptLanguageback to summary
public static final String AcceptLanguage

List of acceptable human languages for response.

Example: Accept-Language: en-US

Authorizationback to summary
public static final String Authorization

Authentication credentials for HTTP authentication.

Example: Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

CacheControlback to summary
public static final String CacheControl

Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.

Example: Cache-Control: no-cache

Connectionback to summary
public static final String Connection

What type of connection the user-agent would prefer.

Example: Connection: keep-alive

ContentLengthback to summary
public static final String ContentLength

The length of the request body in octets (8-bit bytes).

Example: Content-Length: 348

ContentMD5back to summary
public static final String ContentMD5

A Base64-encoded binary MD5 sum of the content of the request body.

Example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==

ContentTypeback to summary
public static final String ContentType

The MIME type of the body of the request (used with POST and PUT requests).

Example: Content-Type: application/x-www-form-urlencoded

Dateback to summary
public static final String Date

The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).

Example: Date: Tue, 15 Nov 1994 08:12:31 GMT

Expectback to summary
public static final String Expect

Indicates that particular server behaviors are required by the client.

Example: Expect: 100-continue

Fromback to summary
public static final String From

The email address of the user making the request.

Example: From: [email protected]

Hostback to summary
public static final String Host

The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The port number may be omitted if the port is the standard port for the service requested.

Example: en.wikipedia.org

IfMatchback to summary
public static final String IfMatch

Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it.

Example: If-Match: "737060cd8c284d8af7ad3082f209582d"

IfModifiedSinceback to summary
public static final String IfModifiedSince

Allows a 304 Not Modified to be returned if content is unchanged.

Example: If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT

IfNoneMatchback to summary
public static final String IfNoneMatch

Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag.

Example: If-None-Match: "737060cd8c284d8af7ad3082f209582d"

IfRangeback to summary
public static final String IfRange

If the entity is unchanged, send me the part(s) that I am missing=""; otherwise, send me the entire new entity.

Example: If-Range: "737060cd8c284d8af7ad3082f209582d"

IfUnmodifiedSinceback to summary
public static final String IfUnmodifiedSince

Only send the response if the entity has not been modified since a specific time.

Example: If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT

MaxForwardsback to summary
public static final String MaxForwards

Limit the number of times the message can be forwarded through proxies or gateways.

Example: Max-Forwards: 10

Originback to summary
public static final String Origin

Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field).

Example: Origin: http://www.example-social-network.com

Pragmaback to summary
public static final String Pragma

Implementation-specific fields that may have various effects anywhere along the request-response chain.

Example: Pragma: no-cache

ProxyAuthorizationback to summary
public static final String ProxyAuthorization

Authorization credentials for connecting to a proxy.

Example: Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Rangeback to summary
public static final String Range

Request only part of an entity. Bytes are numbered from 0.

Example: Range: bytes=500-999

Refererback to summary
public static final String Referer

This is the address of the previous web page from which a link to the currently requested page was followed. (The word "referrer" has been misspelled in the RFC as well as in most implementations to the point that it has become standard usage and is considered correct terminology).

Example: Referer: http://en.wikipedia.org/wiki/Main_Page

TEback to summary
public static final 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.

Example: TE: trailers, deflate

Upgradeback to summary
public static final String Upgrade

Ask the server to upgrade to another protocol.

Example: Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11

UserAgentback to summary
public static final String UserAgent

The user agent string of the user agent.

Example: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/21.0

Viaback to summary
public static final String Via

Informs the server of proxies through which the request was sent.

Example: Via: 1.0 fred, 1.1 example.com (Apache/1.1)

Warningback to summary
public static final String Warning

A general warning about possible problems with the entity body.

Example: Warning: 199 Miscellaneous warning