UploadTask.onHeadersReceived
js
UploadTask.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
- Object res: returns the HTTP Response Header information
res properties:
| Property | Type | Description |
|---|---|---|
| header | Object | HTTP Response Header returned by the developer server |
