Class HTTPClientResponse
Inherits from
-
HTTPResponse
(base class)
Fields
Name | Type | Description |
---|---|---|
cookies | Cookie[string] | All cookies that shall be set on the client for this request |
headers | InetHeaderMap | The response header fields |
httpVersion | HTTPVersion | The protocol version of the response - should not be changed |
statusCode | int | The status code of the response, 200 by default |
statusPhrase | string | The status phrase of the response |
Properties
Name | Type | Description |
---|---|---|
bodyReader | InputStream | An input stream suitable for reading the response body. |
contentType | string | Shortcut to the "Content-Type" header |
Methods
Name | Description |
---|---|
dropBody | Reads and discards the response body. |
readJson | Reads the whole response body and tries to parse it as JSON. |
readRawBody | Provides an unsafe maeans to read raw data from the connection. |
Authors
Sönke Ludwig, Jan Krüger
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.