Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeepRequest middleware #156

Closed
teamon opened this issue Jan 24, 2018 · 0 comments
Closed

KeepRequest middleware #156

teamon opened this issue Jan 24, 2018 · 0 comments

Comments

@teamon
Copy link
Member

teamon commented Jan 24, 2018

Put request headers and body in opts.
Not sure if this will work, needs to be tested.

defmodule Tesla.Middleware.KeepRequest do
  def call(env, next, _opts) do
    env
    |> Tesla.put_opt(:req_body, env.body)
    |> Tesla.put_opt(:req_headers, env.header)
    |> Tesla.run(next)
  end
end
@teamon teamon self-assigned this Jan 24, 2018
@teamon teamon added this to the 1.0.0 milestone Jan 24, 2018
@teamon teamon mentioned this issue Jan 24, 2018
9 tasks
@teamon teamon modified the milestones: 1.0, 1.1 Mar 14, 2018
@teamon teamon added this to To do in 1.0 Mar 14, 2018
@teamon teamon changed the title New KeepRequest middleware KeepRequest middleware Mar 22, 2018
@teamon teamon modified the milestones: 1.0, 1.1 Mar 22, 2018
@teamon teamon removed this from To do in 1.0 Mar 22, 2018
@teamon teamon removed the experiment label Mar 22, 2018
@teamon teamon removed their assignment Mar 22, 2018
teamon added a commit that referenced this issue Mar 30, 2018
@teamon teamon closed this as completed Mar 30, 2018
@teamon teamon modified the milestones: 1.1, 1.0 Jun 7, 2018
@teamon teamon removed this from the 1.2 milestone Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant