import * as superdeno from "https://deno.land/x/superdeno@4.8.0/test/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 | |
An interface which allows setting and accessing cookies related to both the
current request and response. Each | |
An interface which provides an interface to access the fields of a
| |
The base class for individual classes of HTTP errors. | |
The oak abstraction of the Deno native HTTP server which is used internally for handling native HTTP requests. Generally users of oak do not need to worry about this class. | |
A class that takes a file (either a Deno.File or Uint8Array) and bytes and streams the ranges as a multi-part encoded HTTP body. | |
An internal oak abstraction for handling a Deno native request. Most users of oak do not need to worry about this abstraction. | |
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. | |
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 event which contains information which will be sent to the remote
connection and be made available in an |
Enums
Enum of HTTP status codes. |
Variables
An object which contains an individual HTTP Error for each HTTP status
error code (4XX and 5XX). When errors are raised related to a particular
HTTP status code, they will be of the appropriate instance located on this
object. Also, context's | |
A symbol that indicates to | |
Map from status code to status text. | |
Allows external parties to modify the context state. | |
Application prototype. | |
Supported version of Deno. | |
Supported Deno methods. | |
Exposes a query object containing the querystring parameters of the request url. | |
Response prototype. | |
Initialize | |
Initialize a new | |
Version of Opine. |
Functions
Found free port.
If the port is not available, returns the port
If the port is not available, returns a random available port
Requires | |
Compose multiple middleware functions into a single middleware function. | |
Calculate an ETag value for an entity. If the entity is | |
Create middleware that will attempt to decode the response.body into
something that can be used to generate an | |
For a given Context, try to determine the response body entity that an ETag can be calculated from. | |
A helper function that takes the value from the | |
A helper function that takes the value from the | |
Given a context, return the | |
Determine, by the value of an | |
Determines if a HTTP | |
Determines if a HTTP | |
Middleware that provides a back-to-back proxy for requests. | |
Asynchronously fulfill a response with a file from the local file system. | |
Creates a mock of | |
Create a mock of | |
Creates a mock | |
Create an Opine application. | |
Create a middleware to parse JSON bodies. | |
Create an Opine application. | |
Create a middleware to parse raw bodies. | |
Serve static files. | |
Create a middleware to parse text bodies. | |
Create a middleware to parse urlencoded bodies. |
Interfaces
Available options that are used when creating a new instance of
| |
Options which can be used when accessing the | |
When setting the | |
Just the part of | |
When reading a body in full via | |
A representation of a file that has been read from a form data body. Based
on the | |
Options which impact how the form data is decoded for a
| |
Middleware are functions which are chained together to deal with requests. | |
The context passed router middleware. | |
Middleware that will be called by the router when handling a specific parameter, which the middleware will be called when a request matches the route parameter. | |
Options that can be set in a mock context. | |
Type Aliases
The tagged type for | |
The tagged type for | |
The tagged type for | |
The tagged type for | |
The tagged type for | |
The tagged type for | |
The tagged type for | |
The type of the body, where: | |
The tagged type for | |
A HTTP status that is an error (4XX and 5XX). | |
A HTTP status that is a redirect (3XX). | |