* Converts the Header to a map. * @returns {Map } A map representation of the Header.
()
| 125 | * @returns {Map<string, any>} A map representation of the Header. |
| 126 | */ |
| 127 | asMap() { |
| 128 | return new Map([ |
| 129 | ['name', this.name], |
| 130 | ['value', Object.fromEntries(this.value.asMap())], |
| 131 | ]) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | /** |