MutableRequest

class MutableRequest(val connection: Request.Connection, var method: HttpMethod, params: Map<String, String>, queryParams: Map<String, String>, headers: Map<String, List<String>>, cookies: Map<String, String>, var body: Body?, val data: MutableData = MutableData()) : Request(source)

Constructors

Link copied to clipboard
constructor(connection: Request.Connection, method: HttpMethod, params: Map<String, String>, queryParams: Map<String, String>, headers: Map<String, List<String>>, cookies: Map<String, String>, body: Body?, data: MutableData = MutableData())
constructor(request: Request)

Properties

Link copied to clipboard
open override var body: Body?

The body payload sent with the request.

Link copied to clipboard
open override val connection: Request.Connection

Information about the connection that carried the request.

Link copied to clipboard
open override val cookies: MutableMap<String, String>

Any cookies sent with the request.

Link copied to clipboard
open override val data: MutableData

A holder of user data that can be added to this request.

Link copied to clipboard

All headers sent with the request.

Link copied to clipboard
open override var method: HttpMethod

The type of http method this call was sent with.

Link copied to clipboard
open override val params: MutableMap<String, String>

A list of key/value pairs extracted either from the user's query string or from any dynamic path parts.

Link copied to clipboard
open override val queryParams: MutableMap<String, String>

Like params but only for the query string.

Functions

Link copied to clipboard
suspend fun Request.readBodyText(): String?