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

Afficher le fichier Open project: joongonn/mHttp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ParseRequestLine() public static méthode

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
Résultat void

TryParseHeaders() public static méthode

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

TryParseHttpRequest() public static méthode

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
Résultat bool

TryParseRequestLine() public static méthode

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
Résultat bool