Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>domTypes.Headers

Deprecated! UUID is part of the deno standard library
Latest
interface domTypes.Headers
implements DomIterable<string, string>
import { type domTypes } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { Headers } = domTypes;

Methods

append(name: string, value: string): void

Appends a new value onto an existing header inside a Headers object, or adds the header if it does not already exist.

delete(name: string): void

Deletes a header from a Headers object.

entries(): IterableIterator<[string, string]>

Returns an iterator allowing to go through all key/value pairs contained in this Headers object. The both the key and value of each pairs are ByteString objects.

get(name: string): string | null

Returns a ByteString sequence of all the values of a header within a Headers object with a given name.

has(name: string): boolean

Returns a boolean stating whether a Headers object contains a certain header.

keys(): IterableIterator<string>

Returns an iterator allowing to go through all keys contained in this Headers object. The keys are ByteString objects.

set(name: string, value: string): void

Sets a new value for an existing header inside a Headers object, or adds the header if it does not already exist.

values(): IterableIterator<string>

Returns an iterator allowing to go through all values contained in this Headers object. The values are ByteString objects.

forEach(callbackfn: (
value: string,
key: string,
parent: this,
) => void
, thisArg?: any
): void
[[Symbol.iterator]](): IterableIterator<[string, string]>

The Symbol.iterator well-known symbol specifies the default iterator for this Headers object