|  Developer
Updated on November 23, 2021

http.get_connection_info()

  • Get the main information about a connection. A plugin can ask only about own connections.
Edit
Name Type Required Description
id string + Unique ID of a request
Edit
  • Return value: table
Name Type Required Description
id string + Unique ID of a request
url string + Full URL for making a connection (can contain custom port)
user_data any User data that was passed to an http.request() call. Can be of any valid type: string, number, boolean, array, object. If is null, the value will not be set.
max_data_length int + Size of data that can be sent per one script execution via http.send_data() method
Edit
  • Required parameter didn’t define:
  • Wrong format of the parameter:
  • Limit of the parameter is reached:
  • Connection doesn’t exist

See also: HTTP Module Events