开发者

Can drupal router handle PUT requests?

开发者 https://www.devze.com 2023-01-04 07:52 出处:网络
I have a module that will be using some restfulness and i\'d like to know if drupal\'s menu router handles开发者_开发技巧 PUT requests without problem...?After doing some research i found that Nothing

I have a module that will be using some restfulness and i'd like to know if drupal's menu router handles开发者_开发技巧 PUT requests without problem...?


After doing some research i found that Nothing stops you from handling PUT requests on Drupal. Actually i looked at the code in rest server module and it seems to handle it without problem. Just inspect the php $_SERVER['REQUEST_METHOD'] as you'd normally do.

Note: Answered my own question and keeping it as per @Henrik Opel comment

0

精彩评论

暂无评论...
验证码 换一张
取 消