Decode Method

HttpServer.dll

[Missing <summary> documentation for M:HttpServer.FormDecoders.FormDecoderProvider.Decode(System.String,System.IO.Stream,System.Text.Encoding)]

Namespace:  HttpServer.FormDecoders
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public HttpForm Decode(
	string contentType,
	Stream stream,
	Encoding encoding
)
Visual Basic (Declaration)
Public Function Decode ( _
	contentType As String, _
	stream As Stream, _
	encoding As Encoding _
) As HttpForm
Visual C++
public:
HttpForm^ Decode(
	String^ contentType, 
	Stream^ stream, 
	Encoding^ encoding
)

Parameters

contentType
Type: System..::.String
Should contain boundary and type, as in: multipart/form-data; boundary=---------------------------230051238959
stream
Type: System.IO..::.Stream
Stream containg form data.
encoding
Type: System.Text..::.Encoding
Encoding used when decoding the stream

Return Value

HttpInput.EmptyLanguageNode if no parser was found. Must always return something (HttpInput.Empty instead of null)

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIf stream is null or not readable.
System.IO..::.InvalidDataExceptionIf stream contents cannot be decoded properly.

See Also