C# Class m.Http.Backend.Tcp.RequestParser

Show file Open project: joongonn/mHttp Class Usage Examples

Public Methods

Method Description
ParseHeader ( byte buffer, int lineStart, int lineEnd, string &name, string &value ) : void
ParseRequestLine ( byte buffer, int lineStart, int lineEnd, Method &method, string &path, string &query, string &version ) : void
TryParseHeaders ( byte buffer, int &start, int end, string>.Action onHeader ) : bool
TryParseHttpRequest ( byte buffer, int &start, int end, System.Net.HttpRequest state, System.Net.HttpRequest &parsedRequest ) : bool
TryParseRequestLine ( byte buffer, int &start, int end, Method &method, string &path, string &query, string &version ) : bool

Private Methods

Method Description
GetLineForDebug ( byte buffer, int lineStart, int lineEnd, int maxChars ) : string
ParseHttpRequest ( System.Net.HttpRequest state ) : System.Net.HttpRequest
TryReadLine ( byte buffer, int &start, int end, int &lineStart, int &lineEnd ) : bool

Method Details

ParseHeader() public static method

public static ParseHeader ( byte buffer, int lineStart, int lineEnd, string &name, string &value ) : void
buffer byte
lineStart int
lineEnd int
name string
value string
return void

ParseRequestLine() public static method

public static ParseRequestLine ( byte buffer, int lineStart, int lineEnd, Method &method, string &path, string &query, string &version ) : void
buffer byte
lineStart int
lineEnd int
method Method
path string
query string
version string
return void

TryParseHeaders() public static method

public static TryParseHeaders ( byte buffer, int &start, int end, string>.Action onHeader ) : bool
buffer byte
start int
end int
onHeader string>.Action
return bool

TryParseHttpRequest() public static method

public static TryParseHttpRequest ( byte buffer, int &start, int end, System.Net.HttpRequest state, System.Net.HttpRequest &parsedRequest ) : bool
buffer byte
start int
end int
state System.Net.HttpRequest
parsedRequest System.Net.HttpRequest
return bool

TryParseRequestLine() public static method

public static TryParseRequestLine ( byte buffer, int &start, int end, Method &method, string &path, string &query, string &version ) : bool
buffer byte
start int
end int
method Method
path string
query string
version string
return bool