Skip to content

DownloadTask.onHeadersReceived ​

js
    DownloadTask.onHeadersReceived(function callback)

Listens for the HTTP Response Header event.

This fires earlier than the request completion event.

Parameters

  • function callback: callback function for the HTTP Response Header event

Parameters of the callback function

  • Object res: returns the HTTP Response Header information
PropertyTypeDescription
headerObjectHTTP Response Header returned by the developer server