set method
Sets a new value to an already existing header inside a Headers object. If the header doesn't exist, set creates a new header for the Headers object.
Syntax
Headers.set(name);
Parameters
name [in]
Type: ByteStringName of the HTTP header to be set with a new value.
value [out]
Type: ByteStringValue of the HTTP header to be set.
Return value
This method does not return a value.
Standards information
Remarks
In the case of a header that accepts multiple values, the set method overrides the value within a header. The append method adds the value to the end of the header's set.