Tesla.Middleware.MethodOverride (tesla v1.5.1) 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 overridden, everything except:get
and:post
if not specified