Skip to content

AndrewBarba/fetch-http2

Repository files navigation

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