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
| Property | Type | Description |
|---|---|---|
| header | Object | HTTP Response Header returned by the developer server |
