Tesla.Middleware.MethodOverride (tesla v1.4.2) View Source

Middleware that adds X-HTTP-Method-Override header with original request method and sends the request as post.

Useful when there's an issue with sending non-POST request.

Examples

defmodule MyClient do
  use Tesla

  plug Tesla.Middleware.MethodOverride
end

Options

  • :override - list of HTTP methods that should be overriden, everything except :get and :post if not specified