MultipartFormDataSection
A raw data section with a section name and a Content-Type header.
Read time 2 minutesLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
MultipartFormDataSection(string, byte[], string)
A raw data section with a section name and a header.
Content-Typepublic MultipartFormDataSection(string name, byte[] data, string contentType)
Parameters
MultipartFormDataSection(string, byte[])
Raw data section with a section name, no header.
Content-Typepublic MultipartFormDataSection(string name, byte[] data)
Parameters
Remarks
Identical to the prior constructor, but with a section name included.
MultipartFormDataSection(byte[])
Raw data section, unnamed and no header.
Content-Typepublic MultipartFormDataSection(byte[] data)
Parameters
Data payload of this section.
Remarks
Will not include either a filename or a section header.
Content-TypeMultipartFormDataSection(string, string, Encoding, string)
A named raw data section whose payload is derived from a string, with a header.
Content-Typepublic MultipartFormDataSection(string name, string data, Encoding encoding, string contentType)
Parameters
Remarks
data will be encoded into raw bytes using .
encodingMultipartFormDataSection(string, string, string)
A named raw data section whose payload is derived from a UTF8 string, with a header.
Content-Typepublic MultipartFormDataSection(string name, string data, string contentType)
Parameters
Remarks
For UTF-8 strings with custom headers, use this constructor. The data is returned in UTF-8 encoding and converted to raw bytes appropriately.
Content-TypeMultipartFormDataSection(string, string)
A names raw data section whose payload is derived from a UTF8 string, with a default .
Content-Typepublic MultipartFormDataSection(string name, string data)
Parameters
Remarks
For UTF8 strings, use this constructor. will be assumed to be in UTF8 encoding and converted appropriately. The section will be assigned a of .
dataContent-Typetext/plain; encoding=utf8MultipartFormDataSection(string)
An anonymous raw data section whose payload is derived from a UTF8 string, with a default .
Content-Typepublic MultipartFormDataSection(string data)
Parameters
String data payload for this section.
Remarks
Identical to the above, but without a section name.