Header

Represents a header with a name and value. Described in https://w3c.github.io/webdriver-bidi/#type-network-Header.

Constructor

Creates a new Header instance.

Parameters:
NameTypeDescription
namestring

The name of the header.

valueBytesValue

The value of the header.

Throws:

If the value is not an instance of BytesValue.

Type
Error

Members

name

Gets the name of the header.

value

Gets the value of the header.

Methods

asMap() → {Map.<string, any>}

Converts the Header to a map.

Returns:

A map representation of the Header.

Type: 
Map.<string, any>