Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.chunkedTransfer

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public var chunkedTransfer: bool;
public bool chunkedTransfer;

Description

Indicates whether the UnityWebRequest system should employ the HTTP/1.1 chunked-transfer encoding method.

This property indicates whether the UnityWebRequest should employ the HTTP/1.1 chunked-transfer encoding method, which allows the system to send partial data and be prompted by the server for more data with a 100/Continue HTTP response. This property cannot be changed after calling Send.

In general, this property should usually be set to true, as it can conserve bandwidth when sending large amounts of data to the server. This setting has no impact on requests with do not transmit data to the server, such as GET requests.

Note: On WebGL build targets, this setting is ignored. Instead, the web browser handles protocol negotiations.

Default value: true.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答