HttpRequestData

class HttpRequestData constructor(url: Url, method: HttpMethod, headers: Headers, body: OutgoingContent, executionContext: Job, attributes: Attributes)

Actual data of the HttpRequest, including url, method, headers, body and executionContext. Built by HttpRequestBuilder.

Constructors

Link copied to clipboard
fun HttpRequestData(url: Url, method: HttpMethod, headers: Headers, body: OutgoingContent, executionContext: Job, attributes: Attributes)

Functions

Link copied to clipboard
fun <T> getCapabilityOrNull(key: HttpClientEngineCapability<T>): T?

Retrieve extension by its key.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val attributes: Attributes
Link copied to clipboard
val body: OutgoingContent
Link copied to clipboard
val executionContext: Job
Link copied to clipboard
val headers: Headers
Link copied to clipboard
val method: HttpMethod
Link copied to clipboard
val url: Url

Extensions

Link copied to clipboard
fun HttpRequestData.isUpgradeRequest(): Boolean