C# Class logv.http.RequestExtensions

Helper class with HttpListenerRequest Extension methods
Afficher le fichier Open project: coolya/logv.http

Méthodes publiques

Méthode Description
Content ( this req ) : string

Reads the content the specified req.

Dump ( this req ) : string

Dumps the specified req.

DumpHeader ( this req ) : string

Dumps the header.

GetAcceptCharset ( this req ) : Encoding

Gets the accept charset.

GetAcceptEncoding ( this req ) : EncodingType

Gets the accept encoding from the header

GetCompressedResponse ( this req, IServerResponse res ) : IServerResponse

Gets a proxy Response according to the Accept-Encoding header

GetEncoding ( this req ) : Encoding

Gets the encoding. Currently a placeholder that does only return UTF8

Private Methods

Méthode Description
GetEncodingFromHeader ( string value ) : Encoding

Method Details

Content() public static méthode

Reads the content the specified req.
public static Content ( this req ) : string
req this The req.
Résultat string

Dump() public static méthode

Dumps the specified req.
public static Dump ( this req ) : string
req this The req.
Résultat string

DumpHeader() public static méthode

Dumps the header.
public static DumpHeader ( this req ) : string
req this The req.
Résultat string

GetAcceptCharset() public static méthode

Gets the accept charset.
public static GetAcceptCharset ( this req ) : Encoding
req this The req.
Résultat System.Text.Encoding

GetAcceptEncoding() public static méthode

Gets the accept encoding from the header
public static GetAcceptEncoding ( this req ) : EncodingType
req this The req.
Résultat EncodingType

GetCompressedResponse() public static méthode

Gets a proxy Response according to the Accept-Encoding header
public static GetCompressedResponse ( this req, IServerResponse res ) : IServerResponse
req this The req.
res IServerResponse The res.
Résultat IServerResponse

GetEncoding() public static méthode

Gets the encoding. Currently a placeholder that does only return UTF8
public static GetEncoding ( this req ) : Encoding
req this The req.
Résultat System.Text.Encoding