Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: http2-client
node v10.24.1
version:
1.0.0
endpoint
share
tweet
var {request} = require("http2-client") const h1Target = 'http://www.example.com/'; const req1 = request(h1Target, (res)=>{ console.log(` Url : ${h1Target} Status : ${res.statusCode} HttpVersion : ${res.httpVersion} `); }); req1.end(); req1.setTimeout(1,()=>req1.abort())
Created from: https://npm.runkit.com/http2-client
Loading…
no comments
sign in
to comment