Set Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sets the specified header to the specified value.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

public void Set(
	string name,
	string value


Type: System..::..String
The header to set.
Type: System..::..String
The content of the header to set.

If the header specified in the header does not exist, the Set method inserts a new header into the list of header name/value pairs.

If the header specified in header is already present, value replaces the existing value.