Package-level declarations

Types

Link copied to clipboard
sealed interface HttpRequest

Immutable representation of an HTTP request

Link copied to clipboard

Used to construct an HTTP request

Functions

Link copied to clipboard
fun HttpRequest(method: HttpMethod, url: Url, headers: Headers = Headers.Empty, body: HttpBody = HttpBody.Empty, trailingHeaders: DeferredHeaders = DeferredHeaders.Empty): HttpRequest

Create a new HttpRequest

Inherited functions

Link copied to clipboard

Add a single header. This will append to any existing headers with the same name.

Link copied to clipboard

Modify the headers inside the given block

Link copied to clipboard

Convert an HttpRequest back to an HttpRequestBuilder

Link copied to clipboard

Set values from an existing Url instance

inline fun HttpRequestBuilder.url(block: Url.Builder.() -> Unit)

Modify the URL inside the block