View Source Tesla.Middleware.MethodOverride (tesla v1.11.2)
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