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

上传者: 42157166 | 上传时间: 2021-05-12 10:03:10 | 文件大小: 68KB | 文件类型: ZIP
固定回复 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

文件下载

资源详情

[{"title":"( 82 个子文件 68KB ) fastify-reply-from:固定插件以将当前的http请求转发到另一台服务器-源码","children":[{"title":"fastify-reply-from-master","children":[{"title":"index.js <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"dependabot.yml <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"stale.yml <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"http2-target-multi-crash.js <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"full-https-get.js <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"unexpected-error.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"https-agents.js <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"full-get.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"full-post.js <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"undici-body.js <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"modifyCoreObjects-false.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"http-agents.js <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"get-with-body.js <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"undici-options.js <span style='color:#111;'> 774B </span>","children":null,"spread":false},{"title":"unix-https.js <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"http2-http2.js <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"transform-body.js <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"on-error.js <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"full-rewrite-body.js <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"full-querystring-rewrite-option-complex.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"no-stream-body-option.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"http2-target-crash.js <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"index.test-d.ts <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"http-invalid-target.js <span style='color:#111;'> 791B </span>","children":null,"spread":false},{"title":"post-with-custom-encoded-contenttype.js <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"base-path.js <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"unix-http-undici.js <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"host-header.js <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"undici-retry.js <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"full-querystring-rewrite-option.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"full-rewrite-body-http.js <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"rewrite-headers.js <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"base-querystring.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"core-with-path-in-base.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"full-querystring-rewrite-string.js <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"unix-http.js <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"no-body-opts-with-head.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"http2-timeout.js <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"http-retry.js <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"get-upstream-undici.js <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"http-http2.js <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"padded-body.js <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"post-plain-text.js <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"full-post-extended-content-type.js <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"head-with-body.js <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"full-querystring-rewrite.js <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"http-timeout.js <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"base-get.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"fastify-multipart-incompatibility.js <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"async-route-handler.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"undici-timeout-body-partial.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"undici-with-path-in-base.js <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"rewrite-request-headers.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"full-rewrite-body-content-type.js <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"undici-timeout.js <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"full-querystring.js <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"full-post-stream.js <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"no-body-opts-with-get.js <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"full-post-stream-core.js <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"http2-https.js <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"post-formbody.js <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"full-post-http2.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"fixtures","children":[{"title":"file.txt <span style='color:#111;'> 12B </span>","children":null,"spread":false},{"title":"fastify.cert <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"fastify.key <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":false},{"title":"http2-invalid-target.js <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"unix-https-undici.js <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"undici-timeout-body.js <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"build-url.js <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"get-upstream-http.js <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"undici.js <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"unix-http-undici-from.js <span style='color:#111;'> 1003B </span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"example.js <span style='color:#111;'> 525B </span>","children":null,"spread":false},{"title":".taprc <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"utils.js <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"request.js <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 10.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明