C# Класс logv.http.RequestExtensions

Helper class with HttpListenerRequest Extension methods
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetEncodingFromHeader ( string value ) : Encoding

Описание методов

Content() публичный статический Метод

Reads the content the specified req.
public static Content ( this req ) : string
req this The req.
Результат string

Dump() публичный статический Метод

Dumps the specified req.
public static Dump ( this req ) : string
req this The req.
Результат string

DumpHeader() публичный статический Метод

Dumps the header.
public static DumpHeader ( this req ) : string
req this The req.
Результат string

GetAcceptCharset() публичный статический Метод

Gets the accept charset.
public static GetAcceptCharset ( this req ) : Encoding
req this The req.
Результат System.Text.Encoding

GetAcceptEncoding() публичный статический Метод

Gets the accept encoding from the header
public static GetAcceptEncoding ( this req ) : EncodingType
req this The req.
Результат EncodingType

GetCompressedResponse() публичный статический Метод

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.
Результат IServerResponse

GetEncoding() публичный статический Метод

Gets the encoding. Currently a placeholder that does only return UTF8
public static GetEncoding ( this req ) : Encoding
req this The req.
Результат System.Text.Encoding