import * as oakNest from "https://deno.land/x/oak_nest@v2.0.1/deps.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 | |
Provides an way to manage cookies in a request and response on the server as a single iterable collection, as well as the ability to sign and verify cookies to prevent tampering. | |
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
A symbol that indicates to | |
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 bold | Make the text bold. |
Calculate an ETag for an entity. When the entity is a specific set of data it will be fingerprinted as a "strong" tag, otherwise if it is just file information, it will be calculated as a weak tag. | |
A factory function which provides a way to create errors. It takes up to 3
arguments, the error | |
Takes an input | |
Set text color to green. | |
A helper function that takes the value from the | |
A helper function that takes the value from the | |
A type guard that determines if the value is an HttpError or not. | |
Make the text italic. | |
Middleware that provides a back-to-back proxy for requests. | |
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. |
Validates given object and reject on error. | |
Set text color to yellow. |
Interfaces
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. | |