HttpClient
interface HttpClient
An HTTP client performs HTTP requests.
You may provide a custom implementation, or use the DefaultHttpClient one which relies on native APIs.
Inheritors
Functions
Link copied to clipboard
Fetches the resource from the given request.
Link copied to clipboard
Fetches the resource from the given request as a JSONObject.
Link copied to clipboard
suspend fun HttpClient.fetchString(request: HttpRequest, charset: Charset = Charsets.UTF_8): HttpTry<String>
Link copied to clipboard
suspend fun <T> HttpClient.fetchWithDecoder(request: HttpRequest, decoder: (HttpFetchResponse) -> T): HttpTry<T>
Link copied to clipboard
Performs a HEAD request to retrieve only the response headers.
Link copied to clipboard
Streams the resource from the given request.