Skip to main content
Module

x/http_fns/types.ts>Interceptors

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

Declare a set of interceptors, for use with the intercept function.

Type Parameters

optional
A extends unknown[] = unknown[]
optional
R = Response | null

Properties

optional
request: readonly RequestInterceptor<A>[]

A chain of RequestInterceptor functions that may return a modified or new Request that is passed to the handler

optional
response: readonly ResponseInterceptor<R>[]

A chain of ResponseInterceptor functions that may modify the Response from the handler

optional
error: readonly ErrorInterceptor<R>[]

A chain of ErrorInterceptor functions that may modify the Response from the handler