C# Class UnityEngine.Networking.MultipartFormDataSection

A helper object for form sections containing generic, non-file data.

Inheritance: IMultipartFormSection
ファイルを表示 Open project: CarlosHBC/UnityDecompiled

Public Methods

Method Description
MultipartFormDataSection ( byte data ) : System

Raw data section, unnamed and no Content-Type header.

MultipartFormDataSection ( string data ) : System

An anonymous raw data section whose payload is derived from a UTF8 string, with a default Content-Type.

MultipartFormDataSection ( string name, byte data ) : System

Raw data section with a section name, no Content-Type header.

MultipartFormDataSection ( string name, byte data, string contentType ) : System

A raw data section with a section name and a Content-Type header.

MultipartFormDataSection ( string name, string data ) : System

A names raw data section whose payload is derived from a UTF8 string, with a default Content-Type.

MultipartFormDataSection ( string name, string data, Encoding encoding, string contentType ) : System

A named raw data section whose payload is derived from a string, with a Content-Type header.

MultipartFormDataSection ( string name, string data, string contentType ) : System

A named raw data section whose payload is derived from a UTF8 string, with a Content-Type header.

Method Details

MultipartFormDataSection() public method

Raw data section, unnamed and no Content-Type header.

public MultipartFormDataSection ( byte data ) : System
data byte Data payload of this section.
return System

MultipartFormDataSection() public method

An anonymous raw data section whose payload is derived from a UTF8 string, with a default Content-Type.

public MultipartFormDataSection ( string data ) : System
data string String data payload for this section.
return System

MultipartFormDataSection() public method

Raw data section with a section name, no Content-Type header.

public MultipartFormDataSection ( string name, byte data ) : System
name string Section name.
data byte Data payload of this section.
return System

MultipartFormDataSection() public method

A raw data section with a section name and a Content-Type header.

public MultipartFormDataSection ( string name, byte data, string contentType ) : System
name string Section name.
data byte Data payload of this section.
contentType string The value for this section's Content-Type header.
return System

MultipartFormDataSection() public method

A names raw data section whose payload is derived from a UTF8 string, with a default Content-Type.

public MultipartFormDataSection ( string name, string data ) : System
name string Section name.
data string String data payload for this section.
return System

MultipartFormDataSection() public method

A named raw data section whose payload is derived from a string, with a Content-Type header.

public MultipartFormDataSection ( string name, string data, Encoding encoding, string contentType ) : System
name string Section name.
data string String data payload for this section.
encoding System.Text.Encoding An encoding to marshal data to or from raw bytes.
contentType string The value for this section's Content-Type header.
return System

MultipartFormDataSection() public method

A named raw data section whose payload is derived from a UTF8 string, with a Content-Type header.

public MultipartFormDataSection ( string name, string data, string contentType ) : System
name string Section name.
data string String data payload for this section.
contentType string C.
return System