import * as oak from "https://deno.land/x/oak@v12.6.1/deps.ts";
Namespaces
|
Classes
The base class that all derivative HTTP extend, providing a | |
A cryptographic key chain which allows signing of data to prevent tampering, but also allows for easy key rotation without needing to re-sign the data. | |
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 event which contains information which will be sent to the remote
connection and be made available in an | |
An implementation of | |
Variables
A namespace that contains each error constructor. Each error extends
| |
v SEP | |
A record of all the status codes text. |
Functions
Returns an array of media types accepted by the request, in order of preference. If there are no media types supplied in the request, then any media type selector will be returned. | |
Returns an array of content encodings accepted by the request, in order of
preference. If there are no encoding supplied in the request, then | |
Returns an array of languages accepted by the request, in order of
preference. If there are no languages supplied in the request, then | |
Decodes a given RFC4648 base64 encoded string | |
CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation | |
Return the last portion of a | |
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. | |
Compile a string to a template function for the path. | |
Concatenate the given arrays into a new Uint8Array. | |
Given an extension or media type, return a full | |
Copy bytes from the | |
A factory function which provides a way to create errors. It takes up to 3
arguments, the error | |
Creates a Promise with the | |
Check whether binary arrays are equal to each other. | |
For a given media type, return the most relevant extension, or | |
Return the extension of the | |
A helper function that takes the value from the | |
A helper function that takes the value from the | |
Verifies whether provided path is absolute | |
A type guard that determines if the status code is an error. | |
A type guard that determines if the value is an HttpError or not. | |
A type guard that determines if the status code is a redirection. | |
f join | Join all given a sequence of |
Allows merging of various sources of headers into a final set of headers
which can be used in a | |
Normalize the | |
Return a | |
Create path match function from | |
Parse a string for the raw tokens. | |
Normalize the given path string, returning a regular expression. | |
Read Reader | |
Create a | |
Compare to array buffers or data views in a way that timing based attacks cannot gain information about the platform. | |
Returns the media type associated with the file extension. Values are
normalized to lower case and matched irrespective of a leading | |
Write all the content of the array buffer ( |
Interfaces
Just the part of | |
I Key | Metadata about a key. |
Type Aliases
An HTTP status that is an error (4XX and 5XX). | |
A type representing string literals of each of the common HTTP method. | |
An HTTP status that is a redirect (3XX). |