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

Allow swapping the HTTP stack. #29

Merged
merged 1 commit into from
Oct 26, 2017
Merged

Conversation

dblock
Copy link
Collaborator

@dblock dblock commented Oct 26, 2017

Closes #7.

This allows you to swap the HTTP adapter at runtime and implements one for Net::HTTP.

However this doesn't remove Faraday as a required dependency. I opened #30, I think I want to leave that unimplemented but open in case someone feels strongly about it.

@@ -307,6 +317,26 @@ describe App do
end
```

Alternately you can `stub_request` with Webmock.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 examples! thanks!

@ashkan18 ashkan18 merged commit e5c2bdf into ashkan18:master Oct 26, 2017
@dblock dblock deleted the swap-http branch October 27, 2017 15:10
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