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.
ファイルを表示 Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
Add ( IFormDecoder decoder ) : void

Add a decoder.

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

Method Details

Add() public method

Add a decoder.
public Add ( IFormDecoder decoder ) : void
decoder IFormDecoder
return void

Decode() public method

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