Skip to main content
Module

x/faster/deps.ts

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of Deno's native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. In "README" there are examples of all the resources. Faster's ideology is: all you need is an optimized middleware manager, all other functionality is middleware.
Go to Latest
import * as faster from "https://deno.land/x/faster@v5.7/deps.ts";

Classes

c
MultipartReader
deprecated

The SignJWT class is a utility for creating Compact JWS formatted JWT strings.

Variables

An wrapper for WebCrypto adding support for additional non-standard algorithms, but delegating to the runtime WebCrypto implementation whenever possible.

Functions

Set the cookie header with empty value in the headers to delete it

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. Requires the --allow-read and --allow-write flag.

Generates a symmetric secret key for a given JWA algorithm identifier.

Parse cookies of a header

Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the JWT Claims Set.

Moves a file or directory

Create a Reader from a ReadableStreamDefaultReader.

Set the cookie header properly in the headers