WebHeaderCollection..::..Set Method (HttpRequestHeader, String)
Sets the specified request header to the specified value.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public void Set( HttpRequestHeader header, string value )
Public Sub Set ( _ header As HttpRequestHeader, _ value As String _ )
public: void Set( HttpRequestHeader^ header, String^ value )
Parameters
- header
- Type: WebSocketSharp.Net..::..HttpRequestHeader
One of the HttpRequestHeader enum values, represents the request header to set.
Exceptions
Exception | Condition |
---|---|
ArgumentException | header is a restricted header. -or- value contains invalid characters. |
ArgumentOutOfRangeException | The length of value is greater than 65,535 characters. |
InvalidOperationException | The current WebHeaderCollection instance doesn't allow the request header. |