tesla v0.7.0 Tesla.Middleware.MethodOverride

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.

Available options:

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

Summary

Functions

call(env, next, opts)
overridable?(env, opts)
override(env)