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
Field | Type | Required | Description |
---|---|---|---|
id | string | + | Unique ID of a request |
data | string, binary | + | Data for sending |
last | bool | – | It’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