HTTP request and response log middleware and format utilities.
import { createHandler } from "https://deno.land/x/http_log/mod.ts";
const logHandler = createHandler();
logHandler(new Request("http://localhost"));
output:
<method> <url-path> <colored:response-status> - <response-time>ms
GET / 200 - 10ms
Copyright © 2023-present httpland.
Released under the MIT license