Click or drag to resize

HttpListenerResponseAddHeader Method

Adds an HTTP header with the specified name and value to the headers for the response.

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

Parameters

name
Type: SystemString
A String that represents the name of the header to add.
value
Type: SystemString
A String that represents the value of the header to add.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is or empty.
ArgumentException

name or value contains invalid characters.

-or-

name is a restricted header name.

ArgumentOutOfRangeException The length of value is greater than 65,535 characters.
InvalidOperationException The header cannot be allowed to add to the current headers.
See Also