C# Класс Stumps.Http.HttpServer

A class that represents a basic HTTP server.
Наследование: IHttpServer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

HttpServer ( ServerScheme scheme, int port, IHttpHandler handler ) : System

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

HttpServer ( int port, IHttpHandler handler ) : System

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

StartListening ( ) : void

Starts the instance listening for HTTP requests.

StopListening ( ) : void

Stops the instance from listening for HTTP requests.

Приватные методы

Метод Описание
ProcessAsyncRequest ( ) : void

Processes the incoming HTTP request asynchronously.

WaitForConnections ( ) : void

Wait for incoming HTTP connections.

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Initializes a new instance of the T:Stumps.Http.HttpServer class.
/// is null. /// exceeds the allowed TCP port range.
public HttpServer ( ServerScheme scheme, int port, IHttpHandler handler ) : System
scheme ServerScheme
port int The port the HTTP server is using to listen for traffic.
handler IHttpHandler The default executed when receiving traffic.
Результат System

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

Initializes a new instance of the T:Stumps.Http.HttpServer class.
/// is null. /// exceeds the allowed TCP port range.
public HttpServer ( int port, IHttpHandler handler ) : System
port int The port the HTTP server is using to listen for traffic.
handler IHttpHandler The default executed when receiving traffic.
Результат System

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

Starts the instance listening for HTTP requests.
public StartListening ( ) : void
Результат void

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

Stops the instance from listening for HTTP requests.
public StopListening ( ) : void
Результат void