Méthode | Description | |
---|---|---|
HttpProcessor ( |
Initializes a new instance of the HttpProcessor class.
|
|
Process ( ) : void |
Process incoming requests.
|
|
WriteFailure ( ) : void |
Write a HTTP failure (500).
|
|
WriteLine ( string value ) : void |
Write a single line of ASCII text followed by the new line character.
|
|
WriteSuccess ( ) : void |
Write an HTTP success (200).
|
Méthode | Description | |
---|---|---|
ParseHeaders ( ) : void |
Parse the headers.
|
|
ParseRequest ( ) : void |
Parse the request to load the method, URL, and protocol.
|
|
ReadLine ( ) : string |
Read the next line from the HTTP request.
|
public HttpProcessor ( |
||
socket | Pass in the client socket. | |
server | Pass in the HTTP server. | |
Résultat | System |
public WriteLine ( string value ) : void | ||
value | string | The string in ASCII format. |
Résultat | void |