Méthode | Description | |
---|---|---|
CreateContext ( Socket socket ) : IHttpClientContext |
Creates a IHttpClientContext that handles a connected client.
|
|
CreateSecureContext ( Socket socket, |
Create a secure IHttpClientContext.
|
|
HttpContextFactory ( ILogWriter writer, int bufferSize, IRequestParserFactory factory ) : System |
Initializes a new instance of the HttpContextFactory class.
|
Méthode | Description | |
---|---|---|
CreateContext ( bool isSecured, |
Create a new context.
|
|
CreateNewContext ( bool isSecured, |
Create a new context.
|
Méthode | Description | |
---|---|---|
OnFreeContext ( object sender, HttpServer.DisconnectedEventArgs e ) : void | ||
OnRequestReceived ( object sender, HttpServer.RequestEventArgs e ) : void |
protected CreateContext ( bool isSecured, |
||
isSecured | bool | true if socket is running HTTPS. |
endPoint | Client that connected | |
stream | Stream | Network/SSL stream. |
sock | Socket | |
Résultat |
public CreateContext ( Socket socket ) : IHttpClientContext | ||
socket | Socket | Client socket (accepted by the |
Résultat | IHttpClientContext |
protected CreateNewContext ( bool isSecured, |
||
isSecured | bool | true if HTTPS is used. |
endPoint | Remote client | |
stream | Stream | Network stream, |
sock | Socket | |
Résultat |
public CreateSecureContext ( Socket socket, |
||
socket | Socket | Client socket (accepted by the |
certificate | HTTPS certificate to use. | |
protocol | SslProtocols | Kind of HTTPS protocol. Usually TLS or SSL. |
Résultat | IHttpClientContext |
public HttpContextFactory ( ILogWriter writer, int bufferSize, IRequestParserFactory factory ) : System | ||
writer | ILogWriter | The writer. |
bufferSize | int | Amount of bytes to read from the incoming socket stream. |
factory | IRequestParserFactory | Used to create a request parser. |
Résultat | System |