Version: Unity 6.2 (6000.2)
LanguageEnglish
  • C#

DownloadHandler.ReceiveContentLengthHeader

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

Declaration

protected void ReceiveContentLengthHeader(ulong contentLength);

Parameters

Parameter Description
contentLength The value of the received Content-Length header.

Description

Callback, invoked with a Content-Length header is received.

This callback is invoked on the main thread.

This callback is only called if a Content-Length header is received. If the remote server doesn't transmit a Content-Length header, but includes body data, then it's possible for ReceiveData to be invoked without receiving a call to this method.

This callback might be invoked more than once. For example, if a redirect is encountered that has a Content-Length header, followed by a standard response, which also has a Content-Length header, this method is invoked twice.