Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReceiveContentLengthHeader(ulong)

Callback, invoked with a Content-Length header is received.
Read time 1 minuteLast updated 10 days ago

Definition

protected virtual void ReceiveContentLengthHeader(ulong contentLength)

Parameters

contentLength

The value of the received
Content-Length
header.

Remarks

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 DownloadHandler.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.