classafBedSheet::HttpRequestHeaders

sys::Obj
  afBedSheet::HttpRequestHeaders

A wrapper for HTTP request headers with accessors for some commonly used headings.

@see https://en.wikipedia.org/wiki/List_of_HTTP_header_fields

acceptEncoding

Source

QualityValues acceptEncoding { private set }

List of acceptable encodings.

Example: Accept-Encoding: compress;q=0.5, gzip;q=1.0

accessControlRequestHeaders

Source

Str? accessControlRequestHeaders { private set }

accessControlRequestMethod

Source

Str? accessControlRequestMethod { private set }

contentType

Source

MimeType? contentType { private set }

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

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

each

Source

Void each(|Str,Str c)

get

Source

@Operator
Str? get(Str name)

host

Source

Uri? host { private set }

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: Host: www.alienfactory.co.uk:8069

ifModifiedSince

Source

DateTime? ifModifiedSince { private set }

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

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

ifNoneMatch

Source

Str? ifNoneMatch { private set }

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

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

map

Source

Str:Str map()

origin

Source

Str? origin { private set }

Initiates a request for cross-origin resource sharing.

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

referrer

Source

Uri? referrer { private set }

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

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

userAgent

Source

Str? userAgent { private set }

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

xRequestedWith

Source

Str? xRequestedWith { private set }

Mainly used to identify Ajax requests.

Example: X-Requested-With: XMLHttpRequest