Click or drag to resize

WebHeaderCollectionIsRestricted Method (String, Boolean)

Determines whether the specified header can be set for the request or the response.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static bool IsRestricted(
	string headerName,
	bool response
)

Parameters

headerName
Type: SystemString
A String that represents the name of the header to test.
response
Type: SystemBoolean
true if does the test for the response; for the request, false.

Return Value

Type: Boolean
true if the header is restricted; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionheaderName is or empty.
ArgumentExceptionheaderName contains invalid characters.
See Also