C# Class Incog.Servers.HttpServer

Simple Hypertext Transfer Protocol (HTTP) Web Server.
Afficher le fichier Open project: SimWitty/Incog Class Usage Examples

Méthodes publiques

Méthode 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 méthode

The handler for HTTP GET requests.
public HttpGetHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
Résultat void

HttpPostHandler() public méthode

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.
Résultat void

HttpServer() public méthode

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

HttpServer() public méthode

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.
Résultat System

Start() public méthode

Begin listening.
public Start ( ) : void
Résultat void

Stop() public méthode

Stop listening
public Stop ( ) : void
Résultat void