프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AddToBody | int | ||
Clear | void |
메소드 | 설명 | |
---|---|---|
HttpRequestParser ( RequestCompletedHandler requestCompleted, ILogWriter logWriter ) : System |
Create a new request parser
|
|
ParseMessage ( byte buffer, int offset, int size ) : int |
Parse a message
|
메소드 | 설명 | |
---|---|---|
OnFirstLine ( string value ) : void |
Parse request line Expects the following format: "Method SP Request-URI SP HTTP-Version CRLF" |
|
OnHeader ( string name, string value ) : void |
We've parsed a new header.
|
메소드 | 설명 | |
---|---|---|
AddToBody ( byte buffer, int offset, int count ) : int |
Add a number of bytes to the body
|
|
Clear ( ) : void |
Remove all state information for the request.
|
public HttpRequestParser ( RequestCompletedHandler requestCompleted, ILogWriter logWriter ) : System | ||
requestCompleted | RequestCompletedHandler | delegate called when a complete request have been generated |
logWriter | ILogWriter | delegate receiving log entries. |
리턴 | System |
protected OnHeader ( string name, string value ) : void | ||
name | string | Name in lower case |
value | string | Value, unmodified. |
리턴 | void |
public ParseMessage ( byte buffer, int offset, int size ) : int | ||
buffer | byte | |
offset | int | where in buffer that parsing should start |
size | int | number of bytes to parse |
리턴 | int |