Plug.MethodOverride

A plug to overwrite “POST” method with the one defined in _method parameter or x-http-method-override header.

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.

Examples

Plug.MethodOverride.call(conn, [])

Summary

call(conn, list2)

Callback implementation of Plug.call/2

init(list1)

Callback implementation of Plug.init/1

Functions

call(conn, list2)

Callback implementation of Plug.call/2.

init(list1)

Callback implementation of Plug.init/1.