An official axios adapter for the complex-request library, providing a layered architecture for HTTP requests with token management, login/refresh automation, and response parsing. Current stable version is 1.1.3. It wraps complex-request's core features using axios as the underlying HTTP client, allowing full access to axios's ecosystem (interceptors, cancellation, progress events). Requires both complex-request and axios as peer dependencies. The API mirrors complex-request's BaseRequest but uses AxiosRequest instead, with optional axios-specific configuration at initialization and per-request.
npm install complex-request-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a Rule with token and parse logic, instantiating AxiosRequest with baseUrl and rule, and making a GET request with axios-specific config.
Use 'as AxiosRequestConfig' or define local with type AxiosRequestConfig.
Check complex-request documentation for expected parse return shape.
Upgrade complex-request to >=1.0.0.
Use lowercase values for location (e.g., 'header', 'body').
npm install complex-request-axios axios complex-request
Use import { AxiosRequest } from 'complex-request-axios'import { Rule } from 'complex-request'Ensure complex-request is installed and at version ^1.0.0