AddHeader Method
From HttpServer.dll
Add another header to the document.
Namespace:
HttpServer
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void AddHeader( string name, string value ) |
| Visual Basic (Declaration) |
|---|
Public Sub AddHeader ( _ name As String, _ value As String _ ) |
| Visual C++ |
|---|
public: void AddHeader( String^ name, String^ value ) |
Parameters
- name
- Type: System..::.String
Name of the header, case sensitive, use lower cases.
- value
- Type: System..::.String
Header values can span over multiple lines as long as each line starts with a white space. New line chars should be \r\n
Remarks
Adding any header will override the default ones and those specified by properties.
Exceptions
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | If headers already been sent. |
| System..::.ArgumentException | If value conditions have not been met. |