- Notifies about the answer on request or new portion of data. It triggers when the “receiving data buffer” is full or all bytes were received (according to the Content-Length or Transfer-Encoding headers), or two end lines are received. When caching is disabled, it triggers immediately after receiving a new portion of data.
|id||string||+||Unique ID of a request|
|url||string||+||Full URL for making a connection (can contain custom port)|
|code||int||+||HTTP request return code|
|headers||array of objects||–||Response headers|
|user_data||any||–||User data that was passed to an http.request() call.|
|data||string, binary||+||Part of data received from a server. Can be in text or binary format.|
|last||bool||–||Last part of HTTP request’s data. If all bytes were received (according to Content-Length header) or|
two end lines were received than this field should be true, in all other cases false.