Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/mod.ts

Alosaur - Deno web framework with many ES Decorators
Very Popular
Latest
import * as alosaur from "https://deno.land/x/alosaur@v1.1.1/mod.ts";

Classes

Request of context

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 .

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

Parse addr from string

Injects a Body object to the controller action parameter. Must be applied on a controller action parameter.

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.

Injects a context 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.

Registers an action to be executed when GET request comes on a given route. Must be applied on a controller action.

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.

Registers an action to be executed when POST request comes on a given route. Must be applied on a controller action.

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.

Injects a request's query parameter object to the controller action parameter. Must be applied on a controller action parameter.

Injects a Request object to the controller action parameter. Must be applied on a controller action parameter.

Injects a Response object to the controller action parameter. Must be applied on a controller action parameter.

Registers hook an area or controller or action.

Renders view with template with changed template render