Skip to content

HandlerContext

[Source]

Request context consumed by a handler factory to create a handler.

Carries the HTTP request, route parameters, and request body. Created by _Connection and passed to the HandlerFactory lambda. The factory consumes the iso context — typically by passing it to a RequestHandler.

Public fields are val (immutable, shareable). Internal fields are package-private and used by RequestHandler to communicate with the connection.

class iso HandlerContext

Public fields

let request: Request val

[Source]


let params: HashMap[String val, String val, HashEq[String val] val] val

[Source]


let body: Array[U8 val] val

[Source]