Methods
append
- append(key: string, value: string): void
-
Parameters
-
key: string
-
value: string
Returns void
delete
- delete(name: string): void
-
Returns void
entries
- entries(): Generator<[string, string], any, unknown>
-
Returns Generator<[string, string], any, unknown>
forEach
- forEach(func: ((value: unknown, key: unknown, object: unknown) => void), thisValue?: unknown): void
-
Parameters
-
func: ((value: unknown, key: unknown, object: unknown) => void)
-
- (value: unknown, key: unknown, object: unknown): void
-
Parameters
-
value: unknown
-
key: unknown
-
object: unknown
Returns void
-
Optional
thisValue: unknown
Returns void
get
- get(key: string): string
-
Returns string
has
- has(name: string): boolean
-
Returns boolean
keys
- keys(): Generator<string, any, unknown>
-
Returns Generator<string, any, unknown>
set
- set(key: string, value: string): void
-
Parameters
-
key: string
-
value: string
Returns void
values
- values(): Generator<string, any, unknown>
-
Returns Generator<string, any, unknown>
Create a new instance given initial header values.