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.
Functions
Reads the HttpResponse.content as a ByteReadChannel.
Reads the HttpResponse.content 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.content.
Reads the whole HttpResponse.content if Content-Length
is specified. Otherwise, it just reads one byte.
Reads exactly count bytes of the HttpResponse.content.
Read the HttpResponse.content 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.
Executes this statement and run HttpClient.responsePipeline with the response and expected type T.
Executes this statement and run the block with a HttpClient.responsePipeline execution result.