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 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:
Booleantrue if the header is restricted; otherwise,
false.
Exceptions Exception | Condition |
---|
ArgumentNullException | headerName is or empty.
|
ArgumentException | headerName contains invalid characters.
|
See Also