2.3.0 • Published 2 years ago
bedrock-https-agent v2.3.0
bedrock-https-agent
Config
const {config} = require('bedrock');
// set this to false to ignore SSL errors in development.
config['https-agent'].rejectUnauthorized = true;
Usage
const {agent} = require('bedrock-https-agent');
const {httpClient} = require('@digitalbazaar/http-client');
const result = await httpClient.get('http://httpbin.org/json', {agent});