fetch-http2
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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

/fetch-http2/

    Package Sidebar

    Install

    npm i fetch-http2

    Weekly Downloads

    4,348

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • andrewbarba