C# 클래스 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.
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IFormDecoder decoder ) : void

Add a decoder.

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

메소드 상세

Add() 공개 메소드

Add a decoder.
public Add ( IFormDecoder decoder ) : void
decoder IFormDecoder
리턴 void

Decode() 공개 메소드

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
리턴 HttpServer.HttpForm