Version: 2021.1
LanguageEnglish
  • C#
Method group is Obsolete

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

Obsolete HTTP/2 and many HTTP/1.1 servers don't support this; we recommend leaving it set to false (default). public bool chunkedTransfer;

Description

**Deprecated.**. HTTP/2 and many HTTP/1.1 servers don't support this; we recommend leaving it set to false (default).

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, however older servers may not support it yet. This setting has no impact on requests which 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: false.