geggleto/method-override

0.1.0 2015-12-04 18:14 UTC

This package is auto-updated.

Last update: 2024-11-29 05:03:16 UTC


README

Provides a PSR-7 compliant middleware that overrides the default HTTP VERB by inspecting the URI and the _method of a message body

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