C# Класс HttpServer.FormDecoders.UrlDecoder

Can handle application/x-www-form-urlencoded
Наследование: IFormDecoder
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CanParse ( string contentType ) : bool

Checks if the decoder can handle the mime type

Decode ( Stream stream, string contentType, Encoding encoding ) : HttpForm

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

CanParse() публичный Метод

Checks if the decoder can handle the mime type
public CanParse ( string contentType ) : bool
contentType string Content type (with any additional info like boundry). Content type is always supplied in lower case.
Результат bool

Decode() публичный Метод

If contents in the stream is not valid input data.
public Decode ( Stream stream, string contentType, Encoding encoding ) : HttpForm
stream Stream Stream containing the content
contentType string Content type (with any additional info like boundry). Content type is always supplied in lower case
encoding System.Text.Encoding Stream enconding
Результат HttpForm