C# Class logv.http.RequestExtensions

Helper class with HttpListenerRequest Extension methods
Mostrar archivo Open project: coolya/logv.http

Public Methods

Method 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

Method Description
GetEncodingFromHeader ( string value ) : Encoding

Method Details

Content() public static method

Reads the content the specified req.
public static Content ( this req ) : string
req this The req.
return string

Dump() public static method

Dumps the specified req.
public static Dump ( this req ) : string
req this The req.
return string

DumpHeader() public static method

Dumps the header.
public static DumpHeader ( this req ) : string
req this The req.
return string

GetAcceptCharset() public static method

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

GetAcceptEncoding() public static method

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

GetCompressedResponse() public static method

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.
return IServerResponse

GetEncoding() public static method

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