Class Response
Response
class Response
;
Fields
Name | Type | Description |
---|---|---|
_code
|
ushort | Server status code |
_connectedAt
|
std | |
_contentLength
|
long | Server-supplied content length (can be -1 when unknown) |
_contentReceived
|
long | Length of received content |
_finalURI
|
requests | Final URI. Can differ from uri() if request go through redirections. |
_finishedAt
|
std | |
_receiveAsRange
|
ReceiveAsRange | stream range stored here |
_requestSentAt
|
std | |
_responseBody
|
requests | Response body |
_responseHeaders
|
string[string] | Response headers |
_startedAt
|
std | |
_uri
|
requests | Initial URI |
Properties
Name | Type | Description |
---|---|---|
code [get]
|
inout(ushort) | |
contentLength [get]
|
inout(long) | |
contentReceived [get]
|
inout(long) | |
finalURI [get]
|
inout(requests | |
getStats [get]
|
std | |
receiveAsRange [get]
|
ReceiveAsRange | |
responseBody [get]
|
requests | |
responseHeaders [get]
|
string[string] | |
uri [get]
|
inout(requests | |
code [set]
|
ushort | |
finalURI [set]
|
requests | |
uri [set]
|
requests |
Methods
Name | Description |
---|---|
format
|
format response to string (hpPqsBTUS). |
toString
|
string representation of response |
Aliases
Name | Description |
---|---|
__xdtor
|