Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including axios-https-proxy with all npm packages installed. Try it out:

require("axios/package.json"); // axios is a peer dependency. var axiosHttpsProxy = require("axios-https-proxy")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

axios-https-proxy v0.1.1

HTTPS proxy support interceptor of axios.

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free