express.js + PATCH动词 [英] express.js + PATCH verb

查看:115
本文介绍了express.js + PATCH动词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Express是否支持HTTP动词"PATCH",例如:

Does Express support the HTTP verb "PATCH", as in:

app.patch("/api/resource", function(req, res){ ... });

我检查了文档,对我来说似乎还不太清楚.他们讨论了GET和POST,但似乎将所有其他HTTP动词"下的所有其他内容混为一谈.

I checked the docs and it seems pretty unclear to me. They discuss GET and POST, but seem to lump everything else under "all the other HTTP verbs".

推荐答案

是.

Express.js依赖于节点方法.在此处找到支持的方法列表.在此处中创建用于表达express的app.VERB方法的循环.

Express.js has a dependency on node-methods. The list of supported methods is found here. The loop that creates the app.VERB methods for express is here.

这篇关于express.js + PATCH动词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆