Skip to main content
Latest
interface Middleware
import { type Middleware } from "https://deno.land/x/periskope_maytapi_deno@v1.4.0/middleware.ts";

Defines the contract for a middleware intercepting requests before they are sent (but after the RequestContext was created) and before the ResponseContext is unwrapped.

Methods

Modifies the request before the request is sent.

Modifies the returned response before it is deserialized.