Skip to main content
Module

x/http_fns/types.ts>ResponseInterceptor

A bunch of functions for building HTTP servers
Go to Latest
type alias ResponseInterceptor
import { type ResponseInterceptor } from "https://deno.land/x/http_fns@v0.0.27/types.ts";

A ResponseInterceptor function takes a Request and Response and optionally returns a modified or new Response, or null to indicate a skipped response (if R permits).

May also return no value (void) or undefined to indicate no change to the Response.

Type Parameters

optional
R = Response | null
definition: (req: Request, res: R) => Awaitable<R | void>