has method

bool has(
  1. String name
)

The has() method of the Headers interface returns a boolean stating whether a Headers object contains a certain header.

For security reasons, some headers can only be controlled by the user agent. These headers include the and .

Implementation

external bool has(String name);