C# Class HttpServer.FormDecoders.UrlDecoder

Can handle application/x-www-form-urlencoded
Inheritance: IFormDecoder
显示文件 Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
CanParse ( string contentType ) : bool

Checks if the decoder can handle the mime type

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

Method Details

CanParse() public method

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

Decode() public method

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
return HttpForm