http-https-agent
Get either a HTTP or HTTPS agent depending on protocol
Last updated 10 years ago by kesla .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install http-https-agent 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (10 years ago)

3 Versions

  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 4
Last Day 1
Last Week 3
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |