HttpRequestData

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

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

Report a problem

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: Url

Functions

Link copied to clipboard
inline fun HttpRequestData.forEachHeader(crossinline block: (key: String, value: String) -> Unit)

Merges request headers and body headers according to OutgoingContent properties and calls block for each header.

Link copied to clipboard

Retrieve extension by its key.

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