C# Class HttpServer.FormDecoders.UrlDecoder

Can handle application/x-www-form-urlencoded
Inheritance: IFormDecoder
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

Decode() public méthode

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
Résultat HttpForm