http2-wrapper:与HTTP1一样使用HTTP2

时间:2021-05-13 00:07:00
【文件属性】:
文件名称:http2-wrapper:与HTTP1一样使用HTTP2
文件大小:73KB
文件格式:ZIP
更新时间:2021-05-13 00:07:00
nodejs agent https http2 alpn http2-包装器 HTTP / 2客户端,只需使用熟悉的https API 创建此程序包的目的是为了支持HTTP / 2,而无需重写您的代码。 我建议如果可能的话, 模块-它使用起来更简单,并且具有许多很酷的功能! 提示:当您依赖使用HTTP / 1 API的其他模块并且要支持HTTP / 2时, http2-wrapper很有用。 专家提示:虽然本机http2还没有代理,但是您可以使用http2-wrapper代理,并且仍然可以在本机HTTP / 2流上运行。 安装 $ npm install http2-wrapper $ yarn add http2-wrapper 用法 const http2 = require ( 'http2-wrapper' ) ; const options = { hostname : 'nghttp2.org' , protocol : '
【文件预览】:
http2-wrapper-master
----.gitignore(57B)
----README.md(10KB)
----.github()
--------workflows()
----test()
--------agent.js(34KB)
--------auto.js(17KB)
--------request.js(22KB)
--------response.js(8KB)
--------proxies.js(21KB)
--------helpers()
--------got.js(877B)
--------headers.js(4KB)
----examples()
--------agent.js(419B)
--------ws()
--------push-stream()
--------request.js(627B)
--------proxies()
--------h2o()
----LICENSE(1KB)
----source()
--------utils()
--------agent.js(21KB)
--------auto.js(5KB)
--------incoming-message.js(1KB)
--------proxies()
--------index.js(1KB)
--------client-request.js(12KB)
----proxy-server.js(4KB)
----package.json(1KB)
----index.test-d.ts(6KB)
----benchmark.js(3KB)
----index.d.ts(3KB)
----h2o.conf(570B)
----.editorconfig(175B)
----.npmrc(19B)

网友评论