annotations/import library

Annotations

Classes

HttpMethod
An annotation to define a route
WsAnnot
WsRespond
WsStream

Constants

kDefaultCharset → const String
kDefaultMimeType → const String

Functions

jsonResponseProcessor(Context context, dynamic result) → void
ResponseProcessor to encode response value to json and also set mimetype to MimeType.json.

Typedefs

ResponseProcessor = FutureOr<void> Function(Context context, dynamic result)
Function that modifies context
WsResultProcessor = String Function(dynamic response)