import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/http/internal.ts";
This is an internal module that provides utility functions for handling HTTP
requests, mostly used by the http.serve
and http.serveStatic
functions.
This module is exposed for advanced use cases such as when we want to
implement a new serve
function that behave like the existing one, e.g. for
integrating with Vite dev server.
Functions
Creates a request context object from the given | |
Creates timing functions for measuring the request processing time. This
function returns the timing functions and a | |
Adds a event listener to the | |
Patches the timing metrics to the response's headers. | |
Renders a directory listing page for the | |
Returns a new request handler that wraps the given one so that we can add
extra | |
Creates a Node.js HTTP request listener with modern Web APIs. |