@bedrock/https-agent

4.1.0 • Public • Published

bedrock-https-agent

Config

import {config} from '@bedrock/core';

// set this to false to ignore SSL errors in development.
config['https-agent'].rejectUnauthorized = true;

Usage

import {agent} from '@bedrock/https-agent';
import {httpClient} from '@digitalbazaar/http-client';

const result = await httpClient.get('http://httpbin.org/json', {agent});

Readme

Keywords

none

Package Sidebar

Install

npm i @bedrock/https-agent

Weekly Downloads

193

Version

4.1.0

License

Apache-2.0

Unpacked Size

37.9 kB

Total Files

19

Last publish

Collaborators

  • msporny
  • dlongley
  • davidlehn
  • mattcollier
  • gannan