|  Developer
Updated on November 23, 2021

http.send_data()

  • Method for sending the next portion of data for the existing request. A plugin can use only own connections.
Edit
  • Arguments: options: table
FieldTypeRequiredDescription
idstring+Unique ID of a request
datastring, binary+Data for sending
lastboolIt’s the last part of data or not. Default value: true. If it is not the last part
of data then http_data_send event will be
generated when existing data would be sent.
Edit
  • Return value: Number of sent/buffered bytes
Edit
  • Required parameter didn’t define:
  • Wrong format of the parameter:
  • Limit of the parameter is reached:
  • Connection doesn’t exist
  • Request for sending data wasn’t started