【文件属性】:
文件名称:fastify-method-override-wrapper:固定包装器以覆盖HTTP动词,以防客户端不支持它们
文件大小:85KB
文件格式:ZIP
更新时间:2021-05-23 11:48:25
JavaScript
固定方法覆盖包装
包装器,该包装器允许使用HTTP动词,例如DELETE,PATCH,HEAD,PUT,OPTIONS,以防客户端不支持它们。 支持>=2.0.0 Fastify版本。
安装
npm install fastify-method-override-wrapper
用法
import fastify from 'fastify' ;
import wrapFastify from 'fastify-method-override-wrapper' ;
const wrappedFastify = wrapFastify ( fastify ) ;
const app = wrappedFastify ( {
// any fastify options, for example logger
logger : true ,
} ) ;
要覆盖HTTP方法,请在U
【文件预览】:
fastify-method-override-wrapper-main
----.github()
--------workflows()
----src()
--------index.js(878B)
----babel.config.js(127B)
----.eslintrc.yml(128B)
----LICENSE(1KB)
----__tests__()
--------index.test.js(1KB)
----README.md(2KB)
----Makefile(146B)
----.gitignore(27B)
----.eslintignore(18B)
----package-lock.json(347KB)
----package.json(1KB)