Skip to main content
Module

x/workers_middleware/index.ts

Placeholder for Worker-based middleware solution
Latest
import * as workersMiddleware from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/index.ts";

Variables

A CORS middleware that gives clients exactly the permissions they ask for, unless constrained by the definitions in options.

Standard MIME type for binary data

A CORS middleware that gives clients exactly the permissions they ask for, unless constrained by the definitions in options.

A CORS middleware that only grants the permissions defined via options.

Non-standard MIME type for binary data. Sometimes used, so included anyway.

Functions

Determines if a request body content type is acceptable to this endpoint.

Determines if a request body content encoding is acceptable to this endpoint.

Determines if a request body content language is acceptable to this endpoint.

Type-enforcing left-to-right function composition function. The first parameter can be a function of any arity, but the remaining parameters must be unary functions. The return type of one function must be compatible with the argument of next function in the argument list (i.e. types flow from left-to-right)

Performs content negotiation over the content encoding of the response.

Performs content negotiation over the content language of the response.

Performs content negotiation over the content type of the response.

Cookie session middleware for worker runtimes.

Performs content negotiation over the content type of the response.

Performs content negotiation over the content encoding of the response.

Performs content negotiation over the content language of the response.

Session middleware for worker runtimes.