C# Class Stumps.Http.StumpsHttpContext

A class that represents the complete context for an HTTP request.
Inheritance: IStumpsHttpContext
Mostrar archivo Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
EndResponse ( bool abort ) : void

Closes the HTTP context and responds to the calling client.

StumpsHttpContext ( HttpListenerContext context ) : System

Initializes a new instance of the T:Stumps.Http.StumpsHttpContext class.

Private Methods

Method Description
WriteBody ( ) : void

Writes the body to the HTTP listener response.

WriteHeaders ( ) : void

Writes the headers to the HTTP listener response.

Method Details

EndResponse() public method

Closes the HTTP context and responds to the calling client.
public EndResponse ( bool abort ) : void
abort bool if set to true, the connection is aborted without responding.
return void

StumpsHttpContext() public method

Initializes a new instance of the T:Stumps.Http.StumpsHttpContext class.
is null.
public StumpsHttpContext ( HttpListenerContext context ) : System
context System.Net.HttpListenerContext The used to initialize the instance.
return System