class

Kemal::OverrideMethodHandler

Inherits HTTP::Handler < Reference < Object

Adds support for _method magic parameter to simulate PUT, PATCH, DELETE requests in an html form.

This middleware is not in the default Kemal handlers. You need to explicitly add this to your handlers:

use Kemal::OverrideMethodHandler::INSTANCE

Important: This middleware consumes params.body to read the _method magic parameter.

Constants

ALLOWED_METHODS = ["PUT", "PATCH", "DELETE"]
INSTANCE = new
OVERRIDE_METHOD = "POST"
OVERRIDE_METHOD_PARAM_KEY = "_method"

Instance methods

call(context)
Source