interface Header { add(key: string, value: string): void; del(key: string): void; get(key: string): string; keys(): string[]; set(key: string, value: string): void; values(key: string): string[];} Methods
add
- add(key: string, value: string): void
Returns void
del
- del(key: string): void
Returns void
get
- get(key: string): string
Returns string
keys
- keys(): string[]
Returns string[]
set
- set(key: string, value: string): void
Returns void
values
- values(key: string): string[]
Returns string[]
Represents the key-value pairs in an HTTP header.