Skip to content
This repository has been archived by the owner. It is now read-only.
HTTPS proxy support interceptor of axios.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.eslintrc
.gitignore
.npmrc
.travis.yml
LICENSE
README.md
browser.js
index.js
package.json

README.md

axios-https-proxy

Build Status Coverage Status dependencies Status devDependencies Status JavaScript Style Guide Greenkeeper badge

HTTPS proxy support interceptor of axios.

Install

$ npm install --save axios-https-proxy

Usage

const axios = require('axios')
const axiosHttpsProxy = require('axios-https-proxy')
axios.interceptors.request.use(axiosHttpsProxy)

Caveats

  • Isomorphic use is supported since browser field is set in package.json.
  • Only HTTPS request through HTTP proxy (by CONNECT) is supported. HTTPS proxy is still not, because HTTP request cannot use follow-redirect#https with maxRedirect option in axios http adapter :(

License

MIT

You can’t perform that action at this time.