1.0.2 • Published 8 years ago

http-https-agent v1.0.2

Weekly downloads
3,261
License
MIT
Repository
github
Last release
8 years ago

http-https-agent

Get either a HTTP or HTTPS agent depending on protocol

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install http-https-agent --save

Usage

/* eslint-disable no-unused-vars */
/* eslint-disable import/no-extraneous-dependencies */
import httpHttpsAgent from 'http-https-agent';

const getAgent = httpHttpsAgent({
  keepAlive: true
});

const httpsAgent = getAgent('https://google.com');
const httpAgent = getAgent('http://google.com');

Tests

npm install
npm test

Dependencies

Dev Dependencies

License

MIT

Generated by package-json-to-readme

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago