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

Add process_request_options/1 to HTTPoison.Base #208

Merged
merged 1 commit into from
Jan 9, 2017
Merged

Add process_request_options/1 to HTTPoison.Base #208

merged 1 commit into from
Jan 9, 2017

Conversation

drewolson
Copy link
Contributor

I recently found myself wanting to add the :proxy option to all requests if a specific env var was present in a deployment environment. I was able to do so by overriding request on HTTPoison.Base, but I think having an overridable process_request_options is a better approach. This PR adds it.

The best testing approach I could come up with was adding the :timeout option in the override. I hope this makes sense.

@drewolson
Copy link
Contributor Author

Does this seem like something you'd be willing to merge in? Anything else I can do here?

@edgurgel
Copy link
Owner

edgurgel commented Jan 9, 2017

I'm keen to accept this PR as it seems to be more common than what I thought it was (#74).

@edgurgel edgurgel merged commit a785964 into edgurgel:master Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants