Click or drag to resize

WebHeaderCollectionSet Method (HttpRequestHeader, String)

Sets the specified request header to the specified value.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void Set(
	HttpRequestHeader header,
	string value
)

Parameters

header
Type: Sfs2X.WebSocketSharp.NetHttpRequestHeader
One of the HttpRequestHeader enum values, represents the request header to set.
value
Type: SystemString
A String that represents the value of the request header to set.
Exceptions
ExceptionCondition
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.
See Also