HttpResponse

Members

Functions

contentDom
auto contentDom()

returns new Document(this.contentText). Requires arsd.dom.

contentJson
auto contentJson()

returns var.fromJson(this.contentText). Requires arsd.jsvar.

contentTypeCharset
string contentTypeCharset()

the charset out of content type, if present. null if not.

contentTypeMimeType
string contentTypeMimeType()

Returns the mime type part of the contentType header.

links
LinkHeader[] links()

Returns the Link header, parsed.

linksHash
LinkHeader[string] linksHash()

Returns links header sorted by "rel" attribute. It returns a new array on each call.

wasSuccessful
bool wasSuccessful()

Properties

cookies
string[string] cookies [@property getter]

Names and values of cookies set in the response.

cookiesDetails
CookieHeader[] cookiesDetails [@property getter]

The full parsed-out information of cookies set in the response.

Variables

code
int code;

The HTTP response code, if the response was completed, or some value < 100 if it was aborted or failed.

codeText
string codeText;
content
ubyte[] content;

The raw content returned in the response body.

contentText
string contentText;

content, but casted to string (for convenience)

contentType
string contentType;

The *full* content type header. See also contentTypeMimeType and contentTypeCharset.

headers
string[] headers;

Array of all headers returned.

headersHash
string[string] headersHash;
httpVersion
string httpVersion;
location
string location;

The location header

requestParameters
HttpRequestParameters requestParameters;
statusLine
string statusLine;
Suggestion Box / Bug Report