Skip to main content
Module

x/http_utils/header.ts

HTTP utility collection for Fetch API
Go to Latest
import * as httpUtils from "https://deno.land/x/http_utils@1.0.0-beta.14/header.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.

HTTP range requests header fields.

HTTP representation data and metadata header fields.

Functions

Check two Headers field name and field value equality.

Returns a new Headers with all entries of the given headers except the ones that have a key(header name or field name) that does not match the given predicate.

Whether the input is AuthenticationHeader or not.

Whether the input is CachingHeader or not.

Whether the input is ConditionalHeader or not.

Whether the input is ContentNegotiationHeader or not.

Whether the input is MessageForwardingHeader or not.

Whether the input is MessageMetadataHeader or not.

Whether the input is RangeHeader or not.

Whether the input is RepresentationHeader 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>.

Interfaces

Header merge options.

Type Aliases

Wellknown HTTP field name.

Custom merge definition.