raxx v0.8.0 Raxx.MethodOverride

Allows browser submitted forms to use HTTP verbs other than POST.

Only the POST method can be overridden, It can be overridden to use any of these HTTP verbs.

  • PUT
  • PATCH
  • DELETE

The body is expected to be parsed aready and in the form of a map.

Should the field be customisable? _method as default. Should it ever error for bad requests.

Summary

Functions

Edits the request method based on the request body

Functions

override_method(request)

Edits the request method based on the request body