C# Class Universe.Framework.Utilities.HttpMultipart

Stream-based multipart handling. In this incarnation deals with an HttpInputStream as we are now using IntPtr-based streams instead of byte []. In the future, we will also send uploads above a certain threshold into the disk (to implement limit-less HttpInputFiles).
Taken from HttpRequest in mono (http://www.mono-project.com)
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
HttpMultipart ( Stream data, string b, Encoding encoding ) : System
ReadNextElement ( ) : Element

Private Methods

Method Description
CompareBytes ( byte orig, byte other ) : bool
GetContentDispositionAttribute ( string l, string name ) : string
GetContentDispositionAttributeWithEncoding ( string l, string name ) : string
MoveToNextBoundary ( ) : long
ReadBoundary ( ) : bool
ReadHeaders ( ) : string
ReadLine ( ) : string
StripPath ( string path ) : string

Method Details

HttpMultipart() public method

public HttpMultipart ( Stream data, string b, Encoding encoding ) : System
data Stream
b string
encoding System.Text.Encoding
return System

ReadNextElement() public method

public ReadNextElement ( ) : Element
return Element