Class Response

Response

class Response ;

Fields

NameTypeDescription
_code ushortServer status code
_connectedAt std.datetime.systime.SysTime
_contentLength longServer-supplied content length (can be -1 when unknown)
_contentReceived longLength of received content
_finalURI requests.uri.URIFinal URI. Can differ from uri() if request go through redirections.
_finishedAt std.datetime.systime.SysTime
_receiveAsRange ReceiveAsRangestream range stored here
_requestSentAt std.datetime.systime.SysTime
_responseBody requests.streams.Buffer!(ubyte)Response body
_responseHeaders string[string]Response headers
_startedAt std.datetime.systime.SysTime
_uri requests.uri.URIInitial URI

Properties

NameTypeDescription
code[get] inout(ushort)
contentLength[get] inout(long)
contentReceived[get] inout(long)
finalURI[get] inout(requests.uri.URI)
getStats[get] std.typecons.Tuple!(core.time.Duration,"connectTime",core.time.Duration,"sendTime",core.time.Duration,"recvTime")
receiveAsRange[get] ReceiveAsRange
responseBody[get] requests.streams.Buffer!(ubyte)
responseHeaders[get] string[string]
uri[get] inout(requests.uri.URI)
code[set] ushort
finalURI[set] requests.uri.URI
uri[set] requests.uri.URI

Methods

NameDescription
format format response to string (hpPqsBTUS).
toString string representation of response

Aliases

NameDescription
__xdtor