C-DEngine 5.105

HttpListenerResponse..::..AppendHeader Method

Appends a value to the specified HTTP header sent with the response.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void AppendHeader(
	string name,
	string value
)
Public Sub AppendHeader ( _
	name As String, _
	value As String _
)
public:
void AppendHeader(
	String^ name, 
	String^ value
)

Parameters

name
Type: String
A String that represents the name of the header to append value to.
value
Type: String
A String that represents the value to append to the header.

Exceptions


ExceptionCondition
ArgumentNullExceptionname is nullNothingnullptra null reference (Nothing in Visual Basic) 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 current headers cannot allow the header to append a value.