import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/http.ts";
Utility functions for handling HTTP related tasks, such as parsing headers.
Functions
f etag | Calculates the ETag for a given entity. |
Gets the cookie by the given | |
Gets the cookies from the | |
Checks if the value from the | |
Checks if the value from the | |
Parses the | |
Parses the | |
Parses the | |
Parses the | |
Parses the | |
Parses the | |
Parses the text message as an HTTP request. | |
Parses the text message as an HTTP response. | |
Parses the | |
Returns a random port number that is available for listening. | |
Serves HTTP requests with the given options. | |
Serves static files from a file system directory or KV namespace (in Cloudflare Workers). | |
Sets a cookie in the | |
Sets the | |
Converts a Cookie object to a string. | |
Converts a list of cookies to a string that can be used in the | |
Converts the request object to text format. | |
Converts the response object to text format. | |
Gets the suggested response type for the request. | |
Performs basic authentication verification for the request. When passed, this
function returns nothing ( |
Interfaces
Represents the HTTP request | |
Represents the HTTP request | |
Represents the HTTP request or response | |
Represents an HTTP Cookie. | |
Represents the network address of a connection peer. | |
Represents the HTTP request | |
Represents the context of an HTTP request. It provides additional information about the request and allows for upgrading the connection to a WebSocket. | |
Options for serving HTTP requests, used by serve. | |
Options for serving static files, used by serveStatic. | |
Represents the user agent information. |
Type Aliases
The handler for processing errors happened during processing HTTP requests. | |
The handler for processing HTTP requests. |