View Source Tesla.Middleware.MethodOverride (tesla v1.13.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
def client do
Tesla.client([Tesla.Middleware.MethodOverride])
end
end
Options
:override
- list of HTTP methods that should be overridden, everything except:get
and:post
if not specified