📄️ setHeaders
The setHeaders method updates the default HTTP headers for the LunexClient instance. This is useful for setting or modifying headers like Authorization or API keys that should be included in all requests.
📄️ getAsync
The getAsync method sends an HTTP GET request to the specified endpoint. It supports optional route parameters, query parameters, custom headers, and request cancellation via an AbortController.
📄️ postAsync
The postAsync method sends an HTTP POST request with a JSON body to the specified endpoint. It supports optional route parameters, custom headers, and request cancellation via an AbortController.
📄️ putAsync
The putAsync method sends an HTTP PUT request with a JSON body to the specified endpoint. It supports optional route parameters, custom headers, and request cancellation via an AbortController.
📄️ patchAsync
The patchAsync method sends an HTTP PATCH request with a JSON body to the specified endpoint. It supports optional route parameters, custom headers, and request cancellation via an AbortController.
📄️ deleteAsync
The deleteAsync method sends an HTTP DELETE request to the specified endpoint. It supports optional route parameters, custom headers, and request cancellation via an AbortController.