class HttpRequest
source · line 8public class HttpRequest internal constructor(
/** The original protocol head; fields retain order, repetition and byte values. */
public val head: HttpRequestHead,
/** The single-consumer request body. */
public val body: HttpRequestBody,
internal val expectations: RequestExpectations = RequestExpectations(head.fields)
)
The immutable protocol request head with lazily parsed application input.
property query
source · line 21public val query: RequestQuery
get: public read-only
Ordered query access using URI, rather than form, plus semantics.
getter get
source · line 21get(): RequestQuery
property path
source · line 19public val path: String
get: public read-only
The original encoded path, excluding query; special targets retain their own shape.
getter get
source · line 19get(): String
property lastEventId
source · line 27public val lastEventId: String?
get: public read-only
The optional SSE resume identifier; duplicates and malformed UTF-8 are rejected.
getter get
source · line 27get(): Option<String>
property method
source · line 17public val method: String
get: public read-only
The exact, case-sensitive HTTP method token.
property headers
source · line 23public val headers: RequestHeaders
get: public read-only
Byte-preserving access to the original request fields.
property body
source · line 12public val body: HttpRequestBody
get: public read-only
The single-consumer request body.
property cookies
source · line 25public val cookies: RequestCookies
get: public read-only
Lazily parsed request cookies, unaffected by response mutations.
property head
source · line 10public val head: HttpRequestHead
get: public read-only
The original protocol head; fields retain order, repetition and byte values.