Skip to main content
Module

x/http_fns/types.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/types.ts";

Interfaces

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

Type Aliases

A result that may be awaited.

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

Type alias for a pathname part of a URLPattern.

A RequestInterceptor function takes a Request and optionally returns a modified or new Request.

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).

Define one or many URL patterns to match against.

A route pattern that can be serialized to JSON.

Define a single URL pattern to match against.