import * as alosaur from "https://deno.land/x/alosaur@v0.21.0/mod.ts";
Classes
c App | |
Exception for 400 HTTP error. | |
Exception for 403 HTTP error. | |
Used to throw HTTP errors. Just do throw new HttpError(code, message) in your controller action and default error handler will catch it and give in your response given code and message . | |
Dependency Container | |
Exception for 500 HTTP error. | |
Exception for todo HTTP error. | |
Exception for 406 HTTP error. | |
Exception for 404 HTTP error. | |
Exception for 401 HTTP error. |
Functions
f Area | |
Class decorator factory that replaces the decorated class' constructor with a parameter less constructor that has dependencies auto-resolved | |
f Body | Injects a Body object to the controller action parameter. Must be applied on a controller action parameter. transform - may by transform function or |
Render JSON or other content such as strings, numbers, booleans | |
Defines a class as a controller. Each decorated controller method is served as a controller action. Controller actions are executed when request come. | |
Injects a request's query parameter value to the controller action parameter. Must be applied on a controller action parameter. | |
Registers an action to be executed when Delete request comes on a given route. Must be applied on a controller action. | |
f Get | Registers an action to be executed when GET request comes on a given route. Must be applied on a controller action. |
Parameter decorator factory that allows for interface information to be stored in the constructor's metadata | |
Class decorator factory that allows the class' dependencies to be injected at runtime. | |
Parameter decorator factory that allows for interface information to be stored in the constructor's metadata | |
Injects a request's route parameter value to the controller action parameter. Must be applied on a controller action parameter. | |
Registers an action to be executed when PATCH request comes on a given route. Must be applied on a controller action. | |
f Post | Registers an action to be executed when POST request comes on a given route. Must be applied on a controller action. |
f Put | Registers an action to be executed when PUT request comes on a given route. Must be applied on a controller action. |
Injects a request's query parameter value to the controller action parameter. Must be applied on a controller action parameter. | |
Class decorator factory that allows constructor dependencies to be registered at runtime. | |
f Req | Injects a Request object to the controller action parameter. Must be applied on a controller action parameter. |
f Res | Injects a Response object to the controller action parameter. Must be applied on a controller action parameter. |
Class decorator factory that registers the class as a scoped dependency within the global container. | |
Class decorator factory that registers the class as a singleton within the global container. | |
Registers hook an area or controller or action. | |
f View | Renders view with template with changed template render |
Interfaces
Provide a dependency using a factory. Unlike the other providers, this does not support instance caching. If you need instance caching, your factory method must implement it. | |