Skip to main content
Module

x/http_utils/mod.ts

HTTP implementation utility collection
Go to Latest
import * as httpUtils from "https://deno.land/x/http_utils@1.0.0-beta.13/mod.ts";

Enums

HTTP Authentication header fields.

HTTP Caching header fields.

HTTP conditional requests header fields.

HTTP content negotiation header fields.

HTTP Message Forwarding header fields.

HTTP Message Metadata header fields.

Standard HTTP methods.

HTTP range requests header fields.

HTTP representation data and metadata header fields.

Functions

Check two Headers field name and field value equality.

Check two Request fields equality.

Check two Response fields equality.

Whether the method is IdempotentMethod or not.

Whether the value is Request or not.

Whether the value is Response or not.

Whether the method is RetrieveMethod or not.

Whether the method is SafeMethod or not.

Weather the field is singleton field or not.

Merge two Headers object. The first Headers always takes precedence. When fields conflict, the first Headers takes precedence if it is a singleton field. If it is a list-based field and not empty, it is appended to the first Headers field. Invalid field names and field values are ignored. No destructive operation is performed on the arguments and returns a new Headers object.

Parse the header field value. Split field values by <quoted-string> or <token>.

Safely returns a Response object. Wraps operations that may cause errors and returns a 500 internal server error response if an error occurs.

Interfaces

HTTP request handler.

Header merge options.

Type Aliases

Wellknown HTTP field name.

HTTP request method.

HTTP method that is idempotent.

HTTP method that request retrieving data.

HTTP method that is read-only.