Package Exports
- fetch-http2
- fetch-http2/dist/fetch.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 (fetch-http2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fetch-http2
Native http2 fetch implementation for Node.js
This module does not attempt to make any http1.1 connections. You need to know ahead of time that the endpoint you're requesting supports http2
import { fetch } from 'fetch-http2'
const res = await fetch('https://httpbin.org/json')
const json = await res.json()