C# 클래스 Stumps.Http.HttpServer

A class that represents a basic HTTP server.
상속: IHttpServer
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
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