Plug.MethodOverride
This plug overrides the request's POST
method with the method defined in the _method
request parameter.
The POST
method can be overridden only by these HTTP methods:
PUT
PATCH
DELETE
This plug expects the body parameters to be already parsed and fetched. Those can be fetched with Plug.Parsers
.
This plug doesn't accept any options.
Examples
Plug.MethodOverride.call(conn, [])
Summary
Functions
- call(conn, list)
Callback implementation for
Plug.call/2
.- init(list)
Callback implementation for
Plug.init/1
.
Functions
call(conn, list)
Callback implementation for Plug.call/2
.
init(list)
Callback implementation for Plug.init/1
.
© 2013 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/plug/Plug.MethodOverride.html