HttpRequestData

class HttpRequestData

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

Constructors

<init>

HttpRequestData(
    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.

Properties

attributes

val attributes: Attributes

body

val body: OutgoingContent

executionContext

val executionContext: Job

headers

val headers: Headers

method

val method: HttpMethod

url

val url: Url

Functions

getCapabilityOrNull

fun <T> getCapabilityOrNull(
    key: HttpClientEngineCapability<T>
): T?

Retrieve extension by it’s key.

toString

fun toString(): String

Extension Functions

isUpgradeRequest

fun HttpRequestData.isUpgradeRequest(): Boolean