Package-level declarations
Types
HttpClient Pipeline used for receiving HttpResponse without any processing.
An HttpClient's response, a second part of HttpClientCall.
Class representing a typed response with an attached expectedType.
HttpClient Pipeline used for executing HttpResponse.
Prepared statement for a HTTP client request. This statement doesn't perform any network requests until execute method call. HttpStatement is safe to execute multiple times.
Properties
Provides a raw ByteReadChannel to the response content as it was read from the network. This content can be still compressed or encoded.
Gets HttpRequest associated with this response.
Functions
Reads the response body as a byte array. Note that all plugins will be applied to the response body, which may be decompressed or decoded.
Reads the HttpResponse.rawContent as a ByteReadChannel.
Reads the HttpResponse.rawContent as a String. You can pass an optional charset to specify a charset in the case no one is specified as part of the Content-Type
response. If no charset specified either as parameter or as part of the response, io.ktor.client.plugins.HttpPlainText settings will be used.
Efficiently discards the remaining bytes of HttpResponse.rawContent.
Reads the raw payload of the HTTP response as a byte array.
Reads exactly count bytes of the HttpResponse.rawContent.
Reads the raw payload of the HTTP response as a byte array.