import * as keywork from "https://deno.land/x/keywork@v6.2.1/http/mod.ts";
Keywork includes utilities for working with incoming HTTP requests,
and extends the native Request
class
for use with Cloudflare Workers
See each of HTTP's submodules for additional details.
Classes
A client-side cachable response. | |
An error response sent to a client when a request is deemed to be invalid in some way. | |
A response that returns a full HTML document. | |
A response sent to the client containing a JSON object. | |
Given that a request's etag header matches an server entity or resource,
a |
Variables
Determines if the given HTTP status status is a client error. | |
Determines if the given HTTP status code is informational. | |
Determines if the given HTTP status status is a redirection. | |
Determines if the given HTTP status status is a server error. | |
Determines if the given HTTP status code is successful. | |
Given a standard uppercase HTTP method verb such as | |
Given a standardized uppercase method verb such as |
Functions
Infers the appropriate Response constructor for the given | |
Clones a given | |
Checks if a given MIME-type is compressible. | |
Checks if the given object is an instance of | |
Checks if the given object is an instance of | |
Checks if the given object is shaped like a | |
Type Aliases
HTTP method verbs. | |
An object that has a | |
Either a full | |
Normalized HTTP methods in a JavaScript friendly format. |