bedrock-https-agent

A configurable httpsAgent for Bedrock.

Usage no npm install needed!

<script type="module">
  import bedrockHttpsAgent from 'https://cdn.skypack.dev/bedrock-https-agent';
</script>

README

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});