Constructor
new Header(name, value)
Creates a new Header instance.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | The name of the header. |
value | BytesValue | The value of the header. |
- Source
Throws:
If the value is not an instance of BytesValue.
- Type
- Error
Members
name
Gets the name of the header.
- Source
value
Gets the value of the header.
- Source
Methods
asMap() → {Map.<string, any>}
Converts the Header to a map.
- Source
Returns:
A map representation of the Header.
- Type:
- Map.<string, any>