C# Class NodeNetAsync.Net.Http.HttpServer

Mostra file Open project: soywiz/NodeNetAsync Class Usage Examples

Public Properties

Property Type Description
MaxKeepAliveRequests int

Public Methods

Method Description
AddFilterFirst ( IHttpFilter Filter ) : void
AddFilterLast ( IHttpFilter Filter ) : void
Create ( Func HandleRequest ) : HttpServer
HttpServer ( Func HandleRequest = null ) : System
ListenAsync ( ushort Port = 80, string Host = "0.0.0.0" ) : System.Threading.Tasks.Task

Protected Methods

Method Description
InitializeConnectionAsync ( TcpSocket Client ) : System.Threading.Tasks.Task
ReadHeadersAsync ( TcpSocket Client, HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task

Private Methods

Method Description
TcpServer_HandleClient ( TcpSocket Client ) : System.Threading.Tasks.Task

Method Details

AddFilterFirst() public method

public AddFilterFirst ( IHttpFilter Filter ) : void
Filter IHttpFilter
return void

AddFilterLast() public method

public AddFilterLast ( IHttpFilter Filter ) : void
Filter IHttpFilter
return void

Create() static public method

static public Create ( Func HandleRequest ) : HttpServer
HandleRequest Func
return HttpServer

HttpServer() public method

public HttpServer ( Func HandleRequest = null ) : System
HandleRequest Func
return System

InitializeConnectionAsync() protected method

protected InitializeConnectionAsync ( TcpSocket Client ) : System.Threading.Tasks.Task
Client NodeNetAsync.Net.TcpSocket
return System.Threading.Tasks.Task

ListenAsync() public method

public ListenAsync ( ushort Port = 80, string Host = "0.0.0.0" ) : System.Threading.Tasks.Task
Port ushort
Host string
return System.Threading.Tasks.Task

ReadHeadersAsync() protected method

protected ReadHeadersAsync ( TcpSocket Client, HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
Client NodeNetAsync.Net.TcpSocket
Request HttpRequest
Response HttpResponse
return System.Threading.Tasks.Task

Property Details

MaxKeepAliveRequests public_oe property

public int MaxKeepAliveRequests
return int