C# Класс Incog.Servers.HttpServer

Simple Hypertext Transfer Protocol (HTTP) Web Server.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

HttpGetHandler() публичный Метод

The handler for HTTP GET requests.
public HttpGetHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
Результат void

HttpPostHandler() публичный Метод

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.
Результат void

HttpServer() публичный Метод

Initializes a new instance of the HttpServer class.
public HttpServer ( SecureString passphrase ) : System
passphrase System.Security.SecureString The passphrase for encrypting and decrypting.
Результат System

HttpServer() публичный Метод

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.
Результат System

Start() публичный Метод

Begin listening.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop listening
public Stop ( ) : void
Результат void