메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
CreateContext ( bool isSecured, |
Create a new context.
|
|
CreateNewContext ( bool isSecured, |
Create a new context.
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 |
public CreateContext ( Socket socket ) : IHttpClientContext | ||
socket | Socket | Client socket (accepted by the |
리턴 | IHttpClientContext |
protected CreateNewContext ( bool isSecured, |
||
isSecured | bool | true if HTTPS is used. |
endPoint | Remote client | |
stream | Stream | Network stream, |
sock | Socket | |
리턴 |
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. |
리턴 | 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. |
리턴 | System |