







Called during parsing of a HttpRequest.
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, should not be url encoded
- value
- Type: System..::.String
Value of the header, should not be url encoded
Exceptions
Exception | Condition |
---|---|
HttpServer.Exceptions..::.BadRequestException | If a header is incorrect. |