C# Class Incog.Servers.HttpServer

Simple Hypertext Transfer Protocol (HTTP) Web Server.
显示文件 Open project: SimWitty/Incog Class Usage Examples

Public Methods

Method Description
HttpGetHandler ( HttpProcessor processor ) : void

The handler for HTTP GET requests.

HttpPostHandler ( HttpProcessor processor ) : void

The handler for HTTP POST requests. TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong?

HttpServer ( SecureString passphrase ) : System

Initializes a new instance of the HttpServer class.

HttpServer ( SecureString passphrase, IPAddress address, int port ) : System

Initializes a new instance of the HttpServer class.

Start ( ) : void

Begin listening.

Stop ( ) : void

Stop listening

Method Details

HttpGetHandler() public method

The handler for HTTP GET requests.
public HttpGetHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
return void

HttpPostHandler() public method

The handler for HTTP POST requests. TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong?
public HttpPostHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
return void

HttpServer() public method

Initializes a new instance of the HttpServer class.
public HttpServer ( SecureString passphrase ) : System
passphrase System.Security.SecureString The passphrase for encrypting and decrypting.
return System

HttpServer() public method

Initializes a new instance of the HttpServer class.
public HttpServer ( SecureString passphrase, IPAddress address, int port ) : System
passphrase System.Security.SecureString The passphrase for encrypting and decrypting.
address System.Net.IPAddress Sets the IP address that the server listens on.
port int Sets the TCP/IP Port that the HTTP server listens on.
return System

Start() public method

Begin listening.
public Start ( ) : void
return void

Stop() public method

Stop listening
public Stop ( ) : void
return void