Skip to main content
Module

x/http_fns/intercept.ts

A bunch of functions for building HTTP servers
Go to Latest
import * as httpFns from "https://deno.land/x/http_fns@v0.0.27/intercept.ts";

Functions

Wrap a Request handler with chains of interceptor functions that modify the request or response, and optionally handle any errors.

Shortcut for intercept when you only need to provide ResponseInterceptors.

A ResponseInterceptor that will catch and skip any Responses that match the given Statuses.