ReceiveContentLengthHeader(ulong)
Callback, invoked with a Content-Length header is received.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
protected virtual void ReceiveContentLengthHeader(ulong contentLength)
Parameters
The value of the received header.
Content-LengthRemarks
This callback is invoked on the main thread.
This callback is only called if a header is received. If the remote server doesn't transmit a header, but includes body data, then it's possible for DownloadHandler.ReceiveData to be invoked without receiving a call to this method.
Content-LengthContent-LengthThis callback might be invoked more than once. For example, if a redirect is encountered that has a header, followed by a standard response, which also has a header, this method is invoked twice.
Content-LengthContent-Length