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.10/mod.ts";

Enums

Caching header represents a header filed for HTTP caching.

Standard HTTP methods.

Representation header fields provide metadata about the representation.

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 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 is read-only.