Response

Response

Members

Functions

format
string format(string fmt)

%h - remote hostname

toString
string toString()

string representation of response

Properties

getStats
auto getStats [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
receiveAsRange
auto ref receiveAsRange [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
responseBody
auto ref responseBody [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
responseHeaders
auto ref responseHeaders [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_code
ushort _code;

Server status code

_connectedAt
SysTime _connectedAt;
Undocumented in source.
_contentLength
long _contentLength;

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

_contentReceived
long _contentReceived;

Length of received content

_finalURI
URI _finalURI;

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

_finishedAt
SysTime _finishedAt;
Undocumented in source.
_receiveAsRange
ReceiveAsRange _receiveAsRange;

stream range stored here

_requestSentAt
SysTime _requestSentAt;
Undocumented in source.
_responseBody
Buffer!ubyte _responseBody;

Response body

_responseHeaders
string[string] _responseHeaders;

Response headers

_startedAt
SysTime _startedAt;
Undocumented in source.
_uri
URI _uri;

Initial URI

Meta