import * as oakNest from "https://deno.land/x/oak_nest@v1.13.16/mod.ts";
Classes
A class which registers middleware (via | |
Provides context about the current request and response to middleware
functions, and the current instance being processed is the first argument
provided a | |
An interface which allows setting and accessing cookies related to both the
current request and response. Each | |
An interface for registering middleware that will run when certain HTTP methods and paths are requested, as well as provides a way to parameterize parts of the requested path. | |
An interface which provides information about the current request. The
instance related to the current request is available on the
| |
An interface to control what response will be sent when the middleware finishes processing the request. | |
Validation error description. |
Variables
this is a high function which will return a param decorator. | |
this is a lower function which compared with createParamDecorator, it remove one player. | |
v Get | |
v Head | |
v Host | |
v Ip | |
v Post | |
v Put | |
A symbol that indicates to | |
v Req | |
v Res | |
A record of all the status codes text. |
Functions
Make an assertion, error will be thrown if | |
Set background color to blue. | |
Set background color using 24bit rgb.
| |
Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit | |
f blue | Set text color to blue. |
f Body | |
f bold | Make the text bold. |
Cache decorator | |
Calculate an ETag value for an entity. If the entity is | |
Create an instance of an HttpError based on the status code provided. | |
f Form | |
Format date using format string | |
Set text color to green. | |
f gzip | |
A helper function that takes the value from the | |
Inject decorator | |
A type guard that determines if the value is an HttpError or not. | |
Make the text italic. | |
Get params by router | |
Middleware that provides a back-to-back proxy for requests. | |
get the params from the request, if has key, then return the value which is parse by it`s type | |
f red | Set text color to red. |
A default metadata decorator factory that can be used on a class, class member, or parameter. | |
Set text color using 24bit rgb.
| |
f rgb8 | Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit |
f send | Asynchronously fulfill a response with a file from the local file system. |
Decorator that assigns metadata to the class/function using the
specified | |
Validates given object and reject on error. | |
Set text color to yellow. |
Interfaces
Interface defining a Class type provider. | |
Interface defining a Dynamic Module. | |
Interface defining an Existing (aliased) type provider. | |
Interface defining a Factory type provider. | |
When reading a body in full via | |
Options which impact how the form data is decoded for a
| |
Middleware are functions which are chained together to deal with requests. | |
Interface describing implementation of an interceptor. | |
Interface describing options for serving static assets. | |
I Type | |
Interface defining a Value type provider. |