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 with on of these HTTP methods:

This plug expects the parameters to be already parsed and fetched. Parameters are fetched with Plug.Conn.fetch_params/1 and parsed with Plug.Parsers.

This plug doesn’t accept any options.

Examples

Plug.MethodOverride.call(conn, [])
Source

Summary

call(conn, list2)

Callback implementation for Plug.call/2

init(list1)

Callback implementation for Plug.init/1

Functions

call(conn, list2)

Callback implementation for Plug.call/2.

Source
init(list1)

Callback implementation for Plug.init/1.

Source