Response

Constructors

this
this(HttpClientResponse response)
Undocumented in source.

Members

Functions

content
string content()

Get the body of the response.

cookies
Cookie[] cookies()
Undocumented in source. Be warned that the author may not have intended to support it.
header
string[] header(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
headers
HttpField[] headers()
Undocumented in source. Be warned that the author may not have intended to support it.
isClientError
bool isClientError()

Determine if the response indicates a client error occurred.

isFailed
bool isFailed()

Determine if the response indicates a client or server error occurred.

isOk
bool isOk()

Determine if the response code was "OK".

isRedirect
bool isRedirect()

Determine if the response was a redirect.

isServerError
bool isServerError()

Determine if the response indicates a server error occurred.

isSuccessful
bool isSuccessful()

Determine if the request was successful.

json
JSONValue json()

Get the JSON decoded body of the response as an array.

opIndex
string opIndex(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
status
int status()

Get the status code of the response.

Meta