h2url
Experimental http2 client for node and the CLI
Usage as CLI
$ npx h2url https://localhost:3001
or
$ npm i -g h2url
$ h2url https://localhost:3001
CLI options
Usage: h2url [options..] URL
Options:
-X/--method METHOD the http method to use
-D/--data/--body BODY the http body to send
-v/--verbose show the headers
-h show this help
Usage as a module
$ npm i h2url
'use strict' const h2url = const url = 'https://localhost:3001'const getStream = { const res = await h2url console // prints { headers, body }} { const res = await h2url console const body = console}
License
MIT