Version: 2022.1
언어: 한국어

IMultipartFormSection

interface in UnityEngine.Networking

매뉴얼로 전환

설명

An interface for composition of data into multipart forms.

In order to provide a finer level of control for those wishing to generate multipart form data, but without forcing most users to refer to RFC 2388, Unity provides this simple interface which the UnityWebRequest API can use to serialize complex data into properly-formatted bytes.

For convenience, the two general types of form sections have been encapsulated into two stock implementations of IMultipartFormSection. Both stock implementations are simply controlled via their constructors.

IMultipartFormSection implementors are converted into bytes via [UnityWebRequest.SerializeFormSections].

See Also: [MultipartFormDataSection], [MultipartFormFileSection].

변수

contentTypeReturns the value to use in the Content-Type header for this form section.
fileNameReturns a string denoting the desired filename of this section on the destination server.
sectionDataReturns the raw binary data contained in this section. Must not return null or a zero-length array.
sectionNameReturns the name of this section, if any.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961