Creates an instance of the RestApiRequest class.
The base URL for the API request.
The body of the API request. Defaults to an empty body if not provided.
The protocol to use for the request. Defaults to HTTP.
The HTTP method for the request. Defaults to GET.
The headers for the request. Defaults to { 'content-type': 'application/json' }.
The timeout in milliseconds for the request. Defaults to 2000 ms.
The base URL for the API request.
The body of the API request, which can be a custom or empty body.
The headers for the request, represented as key-value pairs.
The HTTP method (GET, POST, etc.) used for the request.
The protocol used for the request (e.g., HTTP or HTTPS).
The timeout for the request in milliseconds.
The type of the action, specific to REST API requests.
StaticAbstractA reference to the AbstractBody class.
StaticEmptyClass representing an empty body for the REST API request. This can be used when no body is required in the request.
StaticJsonClass representing a JSON body for the REST API request. Serializes data into a JSON string for use in the request body.
Class representing a REST API request action. This action sends an HTTP request to a given
base_urlwith specified HTTP method, headers, body, and timeout.