HttpFields
Defined in: packages/format-http/src/http-fields.ts:47
Extended by
Section titled “Extended by”Implements
Section titled “Implements”Iterable<[HttpFieldName,ReadonlyArray<HttpFieldValue>]>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HttpFields(
initialFields?,options?):HttpFields
Defined in: packages/format-http/src/http-fields.ts:54
Parameters
Section titled “Parameters”initialFields?
Section titled “initialFields?”options?
Section titled “options?”Returns
Section titled “Returns”HttpFields
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
MapIterator<[string, readonlystring[]]>
Defined in: packages/format-http/src/http-fields.ts:87
Returns
Section titled “Returns”MapIterator<[string, readonly string[]]>
Implementation of
Section titled “Implementation of”Iterable.[iterator]
append()
Section titled “append()”append(
name, …values):void
Defined in: packages/format-http/src/http-fields.ts:133
Parameters
Section titled “Parameters”string
values
Section titled “values”…readonly string[]
Returns
Section titled “Returns”void
clear()
Section titled “clear()”clear():
void
Defined in: packages/format-http/src/http-fields.ts:129
Returns
Section titled “Returns”void
delete()
Section titled “delete()”delete(
name):void
Defined in: packages/format-http/src/http-fields.ts:139
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
filter()
Section titled “filter()”filter(
predicate):HttpFields
Defined in: packages/format-http/src/http-fields.ts:143
Parameters
Section titled “Parameters”predicate
Section titled “predicate”Predicate<[string, readonly string[]]>
Returns
Section titled “Returns”HttpFields
foldedEntries()
Section titled “foldedEntries()”foldedEntries(
redacted?):IterableIterator<[string,string]>
Defined in: packages/format-http/src/http-fields.ts:97
Parameters
Section titled “Parameters”redacted?
Section titled “redacted?”boolean = false
Returns
Section titled “Returns”IterableIterator<[string, string]>
get(
name): readonlystring[] |null
Defined in: packages/format-http/src/http-fields.ts:115
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”readonly string[] | null
has(
name):boolean
Defined in: packages/format-http/src/http-fields.ts:111
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
isSensitive()
Section titled “isSensitive()”isSensitive(
name):boolean
Defined in: packages/format-http/src/http-fields.ts:168
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
isUnfoldable()
Section titled “isUnfoldable()”isUnfoldable(
name):boolean
Defined in: packages/format-http/src/http-fields.ts:158
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
names()
Section titled “names()”names():
IterableIterator<string>
Defined in: packages/format-http/src/http-fields.ts:93
Returns
Section titled “Returns”IterableIterator<string>
set(
name,values):void
Defined in: packages/format-http/src/http-fields.ts:119
Parameters
Section titled “Parameters”string
values
Section titled “values”readonly string[] | null
Returns
Section titled “Returns”void
toString()
Section titled “toString()”toString():
string
Defined in: packages/format-http/src/http-fields.ts:152
Returns a string representation of an object.
Returns
Section titled “Returns”string