import * as hex from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
Namespaces
A library of assertion functions. | |
N djwt | |
N log | Logging library with the support for terminal and file outputs. Also provides interfaces for building custom loggers. |
N oak | A middleware framework for handling HTTP with Deno. |
A collection of APIs for dealing with ETags in requests and responses. | |
A collection of APIs to help assist in creating middleware. | |
A collection of utility APIs which can make testing of an oak application easier. |
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 | |
A server abstraction which manages requests from Deno's flash server. | |
An interface which provides an interface to access the fields of a
| |
The base class that all derivative HTTP extend, providing a | |
An abstraction which wraps a | |
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.FsFile 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
Get log level numeric values through enum constants | |
Get log level numeric values through enum constants | |
Standard HTTP status codes. |
Variables
Permitted log level names | |
A map of HttpErrors that are unique instances for each HTTP error status code. | |
A symbol that indicates to | |
A record of all the status codes text. | |
Allows external parties to modify the context state. |
Functions
Make an assertion, error will be thrown if | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that actual is not null or undefined. If not then throw. | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Executes a function which returns a promise, expecting it to reject. | |
Make an assertion that | |
Make an assertion that actual includes expected. If not then throw. | |
Executes a function, expecting it to throw. If it does not, then it throws. | |
Deep equality comparison used in assertions | |
Forcefully throws a failed assertion | |
Use this to stub out methods that will throw when invoked. | |
Use this to assert unreachable code. | |
Takes | |
Takes a | |
This helper function simplifies setting a | |
It does not verify the digital signature. | |
Takes jwt, | |
Log with critical level, using default logger. | |
Log with debug level, using default logger. | |
Log with error level, using default logger. | |
Get a logger instance. If not specified | |
Log with info level, using default logger. | |
Setup logger config. | |
Log with warning level, using default logger. | |
Returns the numeric log level associated with the passed, stringy log level name. | |
Returns the stringy log level name provided the numeric log level | |
Compose multiple middleware functions into a single middleware function. | |
Create an instance of an HttpError based on the status code provided. | |
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 | |
A function that determines if the current environment supports Deno flash. | |
Given a context, return the | |
Determine, by the value of an | |
Determines if a HTTP | |
A type guard that determines if the value is an HttpError or not. | |
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 |
Interfaces
JWS §4.1.1: The "alg" value is a case-sensitive ASCII string containing a StringOrURI value. This Header Parameter MUST be present and MUST be understood and processed by implementations. | |
JWT §1: JWTs encode claims to be transmitted as a JSON [RFC7159] object [...]. JWT §4.1: The following Claim Names are registered in the IANA "JSON Web Token Claims" registry established by Section 10.1. None of the claims defined below are intended to be mandatory to use or implement in all cases, but rather they provide a starting point for a set of useful, interoperable claims. Applications using JWTs should define which specific claims they use and when they are required or optional. | |
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
Union of valid log level strings | |
Union of valid log level strings | |
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). | |