HTTP Support Package
The HTTP support package enables Engee to work with HTTP connections via the REST API. The package runs on top of the subsystem Engee.Integrations and it allows you to act as an HTTP client for communicating with external services.
Requirements
-
The Engee subsystem is installed and running.Integration.
-
The base URLs of external services and API endpoints are known.
Quick start
-
Install or connect the Engee subsystem.Integrations as shown in article.
-
Initialize the HTTP client with the basic settings (base URL, authorization, timeouts).
-
Use the functions to make HTTP requests (GET, POST, PUT, PATCH, DELETE) to external APIs.
-
Configure request headers and authorization parameters as needed.
Main features
-
Support for the main HTTP methods: GET, POST, PUT, PATCH, DELETE.
-
Flexible authorization settings (basic, digest, bearer).
-
The ability to set custom headers.
-
Support for various data formats: URL parameters, form-data, JSON, files.
-
Setting up timeouts and SSL verification.
Working with the HTTP client
To work with HTTP, you must first initialize the client using the function init_session, specifying the base URL and authorization parameters. After that, you can make requests to various API endpoints.
Responses to requests contain a status code, a text or byte representation of the data, as well as information about the time when the request was completed.
| A detailed description of all functions and methods of working with HTTP is available in the article HTTP Support Package. |