tesla v0.10.0 Tesla.Middleware.MethodOverride 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.
Example
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
Link to this section Summary
Functions
Callback implementation for Tesla.Middleware.call/3
Link to this section Functions
Callback implementation for Tesla.Middleware.call/3
.