Request

class Request

Class for a Request. A Request represents a request to be sent over the network.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val builder: HttpRequestBuilder
Link copied to clipboard

Functions

Link copied to clipboard
fun body(body: JsonObject = buildJsonObject {})

Sets the body of the request.

Link copied to clipboard
fun cookies(cookies: Cookies)

Adds cookies to the request.

Link copied to clipboard
fun form(formBuilder: FormBuilder.() -> Unit)

Sets the form of the request.

Link copied to clipboard
fun header(name: String, value: String)

Adds a header to the request.

Link copied to clipboard
fun parameter(name: String, value: String)

Adds a parameter to the request.

Link copied to clipboard
fun url(url: String)

Sets the URL of the request.