jaguar.src.annotations library

Annotations

Classes

Delete
Annotation to declare a method as request handler method that processes DELETE requests.
DeleteJson
Annotation to declare a method as request handler method that processes DELETE requests with JSON response.
GenController
Annotates a class that it is an API class that contains route handlers
Get
Annotation to declare a method as request handler method that processes GET requests.
GetHtml
Annotation to declare a method as request handler method that processes GET requests with HTML response.
GetJson
Annotation to declare a method as request handler method that processes GET requests with JSON response.
HttpMethod
An annotation to define a route
IncludeController
Includes the route handlers into the parent API class
OptionsMethod
Annotation to declare a method as request handler method that processes OPTIONS requests.
Patch
Annotation to declare a method as request handler method that processes PATCH requests.
Post
Annotation to declare a method as request handler method that processes POST requests.
PostJson
Annotation to declare a method as request handler method that processes POST requests with JSON response.
Put
Annotation to declare a method as request handler method that processes PUT requests.
PutJson
Annotation to declare a method as request handler method that processes PUT requests with JSON response.

Constants

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

Functions

jsonResponseProcessor(Response resp) → void
ResponseProcessor to encode response value to json and also set mimetype to MimeType.json.

Typedefs

ResponseProcessor(Response response) → void
Function that modifies response
WsResultProcessor(dynamic response) String