HttpHeaders • Angular 日本語版
Constructs a new HTTP header object with the given values.
@paramheadersstring | { [name: string]: string | number | (string | number)[]; } | Headers | undefined
Checks for existence of a given header.
@paramnamestring
The header name to check for existence.
@returnsboolean
Retrieves the first value of a given header.
@paramnamestring
The header name.
@returnsstring | null
Retrieves the names of the headers.
@returnsstring[]
Retrieves a list of values for a given header.
@paramnamestring
The header name from which to retrieve values.
@returnsstring[] | null
Appends a new value to the existing set of values for a header and returns them in a clone of the original instance.
@paramnamestring
The header name for which to append the values.
@paramvaluestring | string[]
The value to append.
Sets 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.
@paramnamestring
The header name.
@paramvaluestring | string[]
The value or values to set or override for the given header.
Deletes values for a given header in a clone of the original instance.
@paramnamestring
The header name.
@paramvaluestring | string[] | undefined
The value or values to delete for the given header.