|  Developer
Updated on November 23, 2021

http_data_received

  • 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.
NameTypeRequiredDescription
idstring+Unique ID of a request
urlstring+Full URL for making a connection (can contain custom port)
codeint+HTTP request return code
headersarray of objectsResponse headers
headers.keystring+Header name
headers.valuestring+Header value
user_dataanyUser data that was passed to an http.request() call.
datastring, binary+Part of data received from a server. Can be in text or binary format.
lastboolLast 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.