⚠️ This package is deprecated. v2 is the final release. No future versions will be published.
Skip to content

addRequest()

You can add an interceptor function to manipulate the HTTP request before sending it.

ts
import api, { IRequest } from "axe-api-client";

api.interceptors.addRequest((request: IRequest) => {
  // you manipulate the IRequest object before the sending
  return request;
});

Released under the MIT License.