Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 564 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 564 Bytes

fetch-http2

npm version Twitter

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()