interface HttpRequest : HttpMessage, CoroutineScope
A request for HttpClient, first part of HttpClientCall.
abstract val attributes: Attributes
Typed Attributes associated to this call serving as a lightweight container. |
|
abstract val call: HttpClientCall
The associated HttpClientCall containing both the underlying HttpClientCall.request and HttpClientCall.response. |
|
abstract val content: OutgoingContent
An OutgoingContent representing the request body |
|
open val coroutineContext: <ERROR CLASS> |
|
open val |
|
abstract val method: HttpMethod
The HttpMethod or HTTP VERB used for this request. |
|
abstract val url: Url
The Url representing the endpoint and the uri for this request. |
fun CoroutineScope.mapEngineExceptions(input: ByteReadChannel, request: HttpRequestData): ByteReadChannel
Returns ByteReadChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException. fun CoroutineScope.mapEngineExceptions(output: ByteWriteChannel, request: HttpRequestData): ByteWriteChannel
Returns ByteWriteChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException. |
open class DefaultHttpRequest : HttpRequest
Default HttpRequest implementation. |