Share via


has method

Checks whether or not a header exists within the current Headers object.

Syntax

var retval = Headers.has(name);

Parameters

  • name [in]
    Type: ByteString

    Name of the HTTP header to check for.

Return value

Type: boolean

A boolean that is true if the specified header exists within the Headers object. false otherwise.

Standards information

See also

Headers