Skip to content

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:

PropertyTypeDescription
headerObjectHTTP Response Header returned by the developer server