Class HTTPClientResponse
Represents a HTTP client response (as received from the server).
Properties
Name | Type | Description |
bodyReader [get]
|
vibe.internal.interfaceproxy.InterfaceProxy!(vibe.core.stream.InputStream) | An input stream suitable for reading the response body.
|
cookies [get]
|
DictionaryList!(vibe.http.common.Cookie,true,32L,false) | All cookies that shall be set on the client for this request
|
maxRequests [get]
|
int | Contains the keep-alive 'max' parameter, indicates how many requests a client can
make before the server closes the connection.
|
contentType [get, set]
|
string | Shortcut to the "Content-Type" header
|
cookies [get]
|
DictionaryList!(vibe.http.common.Cookie,true,32L,false) | All cookies that shall be set on the client for this request
|
Methods
Name | Description |
disconnect
()
|
Forcefully terminates the connection regardless of the current state.
|
dropBody
()
|
Reads and discards the response body.
|
readJson
()
|
Reads the whole response body and tries to parse it as JSON.
|
readRawBody
(del)
|
Provides unsafe means to read raw data from the connection.
|
switchProtocol
(new_protocol)
|
Switches the connection to a new protocol and returns the resulting ConnectionStream.
|
toString
()
|
|