http_server.get_connection_info()
- Get main information about the connection. A plugin can ask only about its own connections.
Edit
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | + | Identifier of a connection |
Edit
table, information about the connection
| Table Field | Type | Required | Description |
|---|---|---|---|
| id | string | + | Identifier of a connection. |
| link_id | string | + | Identifier of a link |
| status | string | + | Current status of the connection. Possible values: — connection is open and wait for new operations; — connection is closed |
| headers | array of objects | – | HTTP request headers, array of (name, value) objects |
| params | array of objects | – | HTTP request parameters, array of (name, value) objects |
| client_ip | string | + | A client’s IP address |
| created | int | + | Connection creation timestamp |
Edit
- Required parameter didn’t define:
- Wrong format of the parameter:
- Connection doesn’t exist