Package Exports
- undici-tls-dispatcher
- undici-tls-dispatcher/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (undici-tls-dispatcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
undici-tls-dispatcher
An undici dispatcher to enable TLS for given URLs
Install
npm i undici-tls-dispatcherUsage
const UndiciTLSDispatcher = require('undici-tls-dispatcher')
const dispatcher = new UndiciTLSDispatcher({
tlsConfig: [
{
url: 'https://yourserver.com',
tls: {
ca: '...'
cert: '...'
key: '...'
}
}
]
})
const res = await request(httpsServerUrl, { dispatcher })
...See test.js for a complete example.
License
Apache 2.0