Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

DownloadHandler.ReceiveContentLength

Предложить изменения

Успех!

Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.

Закрыть

Ошибка внесения изменений

По определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.

Закрыть

Отменить

Руководство
protected function ReceiveContentLength(contentLength: int): void;
protected void ReceiveContentLength(int contentLength);

Параметры

contentLength The value of the received Content-Length header.

Описание

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

This callback is invoked on the main thread.

Note: This callback is only called if a Content-Length header is received. If the remote server does not transmit a Content-Length header, but does include body data, then it is possible for ReceiveData to be invoked without receiving a call to this method.

Note: This callback may be invoked more than once. An example scenario would be a case where a redirect is encountered, followed by a standard response. If both the redirect and standard response include Content-Length headers, this method will be invoked twice.