WebHeaderCollectionAdd Method (HttpResponseHeader, String) |
Namespace: Sfs2X.WebSocketSharp.Net
public void Add( HttpResponseHeader 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 response header. |