$request->method()

Returns the request method (GET, POST, DELETE, etc.)

  • return (string)
echo kirby()->request()->method();