@hydra-cg/heracles.ts > IHeaders
Describes an abstract headers collection.
interface:
IHeaders
▸ get(name: string
): string
| null
Defined in DataModel/IHeaders.ts:11
Gets a header of a given name.
Parameters:
Name | Type | Description |
---|---|---|
name | string |
Name of the header to obtain. |
Returns: string
| null
▸ has(name: string
): boolean
Defined in DataModel/IHeaders.ts:18
Checks whether the collection has a header of a given name.
Parameters:
Name | Type | Description |
---|---|---|
name | string |
Name of the header to check for existence. |
Returns: boolean