jaguar.src.annotations library Null safety

Annotations

Classes

GenController
Annotates a class that it is an API class that contains route handlers
HttpMethod
An annotation to define a route
IncludeController
Includes the route handlers into the parent API class
WsAnnot
WsRespond
WsStream

Constants

kDefaultCharset → const String
'utf-8'
kDefaultMimeType → const String
'text/plain'

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)