AlexGaiser / freepi

A libarary for free API wrappers and other services to aid in prototyping and development
2 stars 1 forks source link

Create Ability to create request methods that use custom Axios instance #56

Closed AlexGaiser closed 3 years ago

AlexGaiser commented 3 years ago

In some cases it would be beneficial to use multiple custom instances of Axios separate from the default instance.

This would provide for several use cases:

  1. Multiple base urls
  2. different authentication headers
  3. different interceptors between requests
  4. Certainty that the instance of axios that is being used is fresh and has not been modified by another part of the application