Share via


append method

Appends a new value to an already existing header inside a Headers object. If the header doesn't exist, append creates a new header for the Headers object.

Syntax

Headers.append(name);

Parameters

  • name [in]
    Type: ByteString

    Name of the HTTP header to be added to the Headers object.

  • value [out]
    Type: ByteString

    Value of the HTTP header to be added.

Return value

This method does not return a value.

Standards information

Remarks

In the case of a header that accepts multiple values, the append method adds the value to the end of the header's set. The set method overrides the value within a header.

See also

Headers