@univerjs/network v0.4.2 • Docs
Class: HTTPHeaders
It wraps headers of HTTP requests' and responses' headers.
Constructors
new HTTPHeaders()
new HTTPHeaders(headers?): HTTPHeaders
Parameters
Parameter | Type |
---|---|
headers ? | string | IHeadersConstructorProps | Headers |
Returns
Defined in
packages/network/src/services/http/headers.ts:30 (opens in a new tab)
Methods
forEach()
forEach(callback): void
Parameters
Parameter | Type |
---|---|
callback | (name , value ) => void |
Returns
void
Defined in
packages/network/src/services/http/headers.ts:40 (opens in a new tab)
get()
get(key): null | string[]
Parameters
Parameter | Type |
---|---|
key | string |
Returns
null
| string
[]
Defined in
packages/network/src/services/http/headers.ts:48 (opens in a new tab)
has()
has(key): boolean
Parameters
Parameter | Type |
---|---|
key | string |
Returns
boolean
Defined in
packages/network/src/services/http/headers.ts:44 (opens in a new tab)
set()
set(key, value): void
Parameters
Parameter | Type |
---|---|
key | string |
value | string | number | boolean |
Returns
void
Defined in
packages/network/src/services/http/headers.ts:53 (opens in a new tab)
toHeadersInit()
toHeadersInit(): HeadersInit
Returns
HeadersInit
Defined in
packages/network/src/services/http/headers.ts:57 (opens in a new tab)