Skip to content

HandlerWithoutContext

[Source]

Simple Handler that can be constructed with only a Session.

interface ref HandlerWithoutContext is
  Handler ref

Implements


Constructors

create

[Source]

new ref create(
  session: Session tag)
: HandlerWithoutContext ref^

Parameters

Returns


Public Functions

apply

[Source]

fun ref apply(
  request: Request val,
  request_id: USize val)
: Any tag

Parameters

Returns


chunk

[Source]

fun ref chunk(
  data: (String val | Array[U8 val] val),
  request_id: USize val)
: None val

Parameters

Returns


finished

[Source]

fun ref finished(
  request_id: USize val)
: None val

Parameters

Returns


cancelled

[Source]

fun ref cancelled(
  request_id: USize val)
: None val

Parameters

Returns


failed

[Source]

fun ref failed(
  reason: ((TooLarge val | UnknownMethod val | InvalidURI val | 
    InvalidVersion val | InvalidContentLength val | InvalidTransferCoding val | 
    InvalidChunk val) & _RequestParseError val),
  request_id: USize val)
: None val

Parameters

Returns


closed

[Source]

fun ref closed()
: None val

Returns


throttled

[Source]

fun ref throttled()
: None val

Returns


unthrottled

[Source]

fun ref unthrottled()
: None val

Returns