WebHeaderCollectionSet Method (HttpRequestHeader, String) |
Namespace: Sfs2X.WebSocketSharp.Net
public void Set( HttpRequestHeader header, string value )
| 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. |