HttpHeaders
Represents the header configuration options for an HTTP request. Instances are immutable. Modifying methods return a cloned instance with the change. The original object is never changed.
constructor
HttpHeadersConstructs a new HTTP header object with the given values.
string | { [name: string]: string | number | (string | number)[]; } | Headers | undefinedHttpHeadershas
booleanChecks for existence of a given header.
stringThe header name to check for existence.
booleanget
string | nullRetrieves the first value of a given header.
stringThe header name.
string | nullkeys
string[]Retrieves the names of the headers.
string[]getAll
string[] | nullRetrieves a list of values for a given header.
stringThe header name from which to retrieve values.
string[] | nullappend
HttpHeadersAppends a new value to the existing set of values for a header and returns them in a clone of the original instance.
stringThe header name for which to append the values.
string | string[]The value to append.
HttpHeadersset
HttpHeadersSets or modifies a value for a given header in a clone of the original instance. If the header already exists, its value is replaced with the given value in the returned object.
stringThe header name.
string | string[]The value or values to set or override for the given header.
HttpHeadersdelete
HttpHeadersDeletes values for a given header in a clone of the original instance.
stringThe header name.
string | string[] | undefinedThe value or values to delete for the given header.
HttpHeaders