Headers
OCP App SDK / Headers
Headers
Index
Constructors
Methods
Constructors
constructor()
Signature
new Headers(headers: string[][] = []): Headers;
Parameters
Name | Type | Default value |
---|---|---|
headers | string [][] | [] |
Returns
Defined in: src/app/lib/Headers.ts:4
Methods
add()
Signature
add(name: string, value: string): void;
Parameters
Name | Type |
---|---|
name | string |
value | string |
Returns
void
Defined in: src/app/lib/Headers.ts:16
addFromArray()
Signature
addFromArray(headers: string[][]): void;
Parameters
Name | Type |
---|---|
headers | string [][] |
Returns
void
Defined in: src/app/lib/Headers.ts:42
get()
Signature
get(name: string): undefined | string;
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| string
Defined in: src/app/lib/Headers.ts:8
has()
Signature
has(name: string): boolean;
Parameters
Name | Type |
---|---|
name | string |
Returns
boolean
Defined in: src/app/lib/Headers.ts:12
set()
Signature
set(name: string, value: null | string): void;
Parameters
Name | Type |
---|---|
name | string |
value | null | string |
Returns
void
Defined in: src/app/lib/Headers.ts:29
setFromObject()
Signature
setFromObject(headers: object): void;
Parameters
Name | Type |
---|---|
headers | {} |
Returns
void
Defined in: src/app/lib/Headers.ts:46
toArray()
Signature
toArray(): string[][];
Returns
string
[][]
Defined in: src/app/lib/Headers.ts:38
Updated 3 months ago