Class HttpClientResponse
Inherits from
-
HttpResponse
(base class)
Fields
Name | Type | Descrption |
---|---|---|
httpVersion [inherited] | HttpVersion | The protocol version of the response - should not be changed |
statusCode [inherited] | int | The status code of the response, 200 by default |
statusPhrase [inherited] | string | The status phrase of the response |
headers [inherited] | InetHeaderMap | The response header fields |
cookies [inherited] | Cookie[string] | All cookies that shall be set on the client for this request |
Methods
Name | Description |
---|---|
bodyReader | An input stream suitable for reading the response body. |
readRawBody | Provides an unsafe maeans to read raw data from the connection. |
readJson | Reads the whole response body and tries to parse it as JSON. |
dropBody | Reads and discards the response body. |
contentType [inherited] | Shortcut to the "Content-Type" header |
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.