C# Class HttpServer.FormDecoders.FormDecoderProvider

This provider is used to let us implement any type of form decoding we want without having to rewrite anything else in the server.
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IFormDecoder decoder ) : void

Add a decoder.

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

Method Details

Add() public méthode

Add a decoder.
public Add ( IFormDecoder decoder ) : void
decoder IFormDecoder
Résultat void

Decode() public méthode

If stream is null or not readable. If stream contents cannot be decoded properly.
public Decode ( string contentType, Stream stream, Encoding encoding ) : HttpForm
contentType string Should contain boundary and type, as in: multipart/form-data; boundary=---------------------------230051238959
stream Stream Stream containg form data.
encoding System.Text.Encoding Encoding used when decoding the stream
Résultat HttpServer.HttpForm