Skip to main content
Deno 2 is finally here 🎉️
Learn more

http-log

HTTP request and response log middleware and format utilities.

Usage

import { createHandler } from "https://deno.land/x/http_log@$VERSION/mod.ts";

const logHandler = createHandler();
logHandler(new Request("http://localhost"), () => new Response("ok"));

output:

<method> <url-path> <colored:response-status> - <response-time>ms
GET / 200 - 10ms

License

Copyright © 2023-present httpland.

Released under the MIT license