The OpenD Programming Language

HTTPResponse

Response - result of request execution.

Response.code - response HTTP code. Response.status_line - received HTTP status line. Response.responseHeaders - received headers. Response.responseBody - container for received body Response.history - for redirected responses contain all history

class HTTPResponse : Response {}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Inherited Members

From Response

_code
ushort _code;

Server status code

_responseBody
Buffer!ubyte _responseBody;

Response body

_responseHeaders
string[string] _responseHeaders;

Response headers

_uri
URI _uri;

Initial URI

_finalURI
URI _finalURI;

Final URI. Can differ from uri() if request go through redirections.

_receiveAsRange
ReceiveAsRange _receiveAsRange;

stream range stored here

_contentReceived
long _contentReceived;

Length of received content

_contentLength
long _contentLength;

Server-supplied content length (can be -1 when unknown)

toString
string toString()

string representation of response

format
string format(string fmt)

%h - remote hostname

Meta