fastify-reply-from:固定插件以将当前的http请求转发到另一台服务器

时间:2021-05-12 09:15:00
【文件属性】:
文件名称:fastify-reply-from:固定插件以将当前的http请求转发到另一台服务器
文件大小:68KB
文件格式:ZIP
更新时间:2021-05-12 09:15:00
JavaScript 固定回复 Fastify插件将当前的HTTP请求转发到另一台服务器。 也支持从HTTP2到HTTP。 安装 npm i fastify-reply-from 与fastify-multipart的兼容性 fastify-reply-from和不应注册为同级插件,也不应在具有父子关系的插件中注册。 在不遵守上述条件的情况下, fastify-reply-from的行为可能不是预期的行为, fastify-reply-from这两个插件是不兼容的。 这是由于fastify-multipart通过解析消耗了多部分内容的事实,因此该内容不会通过fastify-reply-from转发给目标服务。 但是,这两个插件可以在相同的fastify实例中使用,条件是它们属于fastify插件层次结构树的不相交分支。 用法 以下示例设置了两个Fastify服务器,并将请求从一台服务器转发到另一台: 'us
【文件预览】:
fastify-reply-from-master
----index.js(7KB)
----package.json(2KB)
----.github()
--------dependabot.yml(261B)
--------workflows()
--------stale.yml(772B)
----test()
--------http2-target-multi-crash.js(1KB)
--------full-https-get.js(1KB)
--------unexpected-error.js(1KB)
--------https-agents.js(2KB)
--------full-get.js(1KB)
--------full-post.js(1KB)
--------undici-body.js(2KB)
--------modifyCoreObjects-false.js(1KB)
--------http-agents.js(1KB)
--------get-with-body.js(1KB)
--------undici-options.js(774B)
--------unix-https.js(2KB)
--------http2-http2.js(1KB)
--------transform-body.js(1KB)
--------on-error.js(1KB)
--------full-rewrite-body.js(1KB)
--------full-querystring-rewrite-option-complex.js(1KB)
--------no-stream-body-option.js(1KB)
--------http2-target-crash.js(1KB)
--------index.test-d.ts(3KB)
--------http-invalid-target.js(791B)
--------post-with-custom-encoded-contenttype.js(2KB)
--------base-path.js(858B)
--------unix-http-undici.js(1KB)
--------host-header.js(2KB)
--------undici-retry.js(3KB)
--------full-querystring-rewrite-option.js(1KB)
--------full-rewrite-body-http.js(1KB)
--------rewrite-headers.js(1KB)
--------base-querystring.js(1KB)
--------core-with-path-in-base.js(1KB)
--------full-querystring-rewrite-string.js(1KB)
--------unix-http.js(1KB)
--------no-body-opts-with-head.js(1KB)
--------http2-timeout.js(2KB)
--------http-retry.js(3KB)
--------get-upstream-undici.js(926B)
--------http-http2.js(1KB)
--------padded-body.js(1KB)
--------post-plain-text.js(1KB)
--------full-post-extended-content-type.js(1KB)
--------head-with-body.js(1KB)
--------full-querystring-rewrite.js(1KB)
--------http-timeout.js(1KB)
--------base-get.js(1KB)
--------fastify-multipart-incompatibility.js(2KB)
--------async-route-handler.js(1KB)
--------undici-timeout-body-partial.js(1KB)
--------undici-with-path-in-base.js(1KB)
--------rewrite-request-headers.js(1KB)
--------full-rewrite-body-content-type.js(1KB)
--------undici-timeout.js(1KB)
--------full-querystring.js(1KB)
--------full-post-stream.js(1KB)
--------no-body-opts-with-get.js(1KB)
--------full-post-stream-core.js(1KB)
--------http2-https.js(2KB)
--------post-formbody.js(2KB)
--------full-post-http2.js(1KB)
--------fixtures()
--------http2-invalid-target.js(809B)
--------unix-https-undici.js(2KB)
--------undici-timeout-body.js(1KB)
--------build-url.js(2KB)
--------get-upstream-http.js(2KB)
--------undici.js(1KB)
--------unix-http-undici-from.js(1003B)
----LICENSE(1KB)
----example.js(525B)
----.taprc(70B)
----index.d.ts(2KB)
----.gitignore(2KB)
----lib()
--------utils.js(2KB)
--------request.js(8KB)
----README.md(10KB)

网友评论