geggleto/method-override

0.1.0 2015-12-04 18:14 UTC

This package is auto-updated.

Last update: 2024-08-29 04:14:29 UTC


README

提供符合PSR-7规范的中间件,通过检查URI和消息体的_method来覆盖默认的HTTP动词

URI: ?_method=<YOURVERB>

GET /index.php/youraction?_method=POST
Would actually turn into a POST request

OR
A POST route may provide a _method='' override

OR
You can specify the header X-Http-Method-Override to override