Skip to main content
Module

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

Functions

A ErrorInterceptor that simply logs the error.

Set of standard logging interceptors.

An interceptor that simply closes a log group (using console.groupEnd), that was started by logRequestGroup.

A RequestInterceptor that logs the Request Headers.

A RequestInterceptor that logs the Requests (using console.group), can be passed a pre interceptor to intercept.

A ResponseInterceptor that logs the Response Headers.

A ResponseInterceptor that logs the Response Status and Content-Type header.