Share via


get method

Gets the first value of a header from the current Headers object.

Syntax

var retval = Headers.get(name);

Parameters

  • name [in]
    Type: ByteString

    Name of the HTTP header with a value to be retrieved.

Return value

Type: ByteString

The first value of the header.

Standards information

See also

Headers