HttpListenerResponse..::..AddHeader Method
Adds an HTTP header with the specified name and
value to the headers for the response.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name 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 header cannot be allowed to add to the current headers. |