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
Adapter for HTTP.rb #775
Comments
Hi @PandaWhisperer and thanks for the interest in Faraday! Up until now, adapter have been kept in Faraday and maintained by the core team. My preferred solution is to have a dedicated gem (e.g. Regarding the implementation, I recently gave some advises on how to build another adapter. You can find them (together with a link to the adapter code) in #766. I’m also in the process of rewriting tests using RSpec and the idea is to allow external gems to integrate those into their tests pipeline. But that’s not a short term thing 😅 I hope this is all useful but please let me know if you need anything else 👍! |
Hey @iMacTia. I had some time and hacked together a basic adapter. You can see a pull request here (I didn't send it to the main repo). Basic features are supported and tested. If you have a minute I would appreciate your feedback. NOTE: this was just for fun, I don't actually NEED this right now. But if anyone does and would like to wrap it into a gem, please LMK. |
Hi @PandaWhisperer and thanks for taking the time to work on this! The whole idea behind v1.0 is to make dead-simple the process of creating a new adapter so that people like you (the community!) can contribute to Faraday without directly depending on the core team. I'm currently focused on that and you can see the progress in this branch. Once that's completed and merged, we can think of using your adapter as a test desk for it 👍 |
Hi @PandaWhisperer 👋 Next step would be to make these tests available for external gems so that they can test changes against the Faraday core. If you're still working on your HTTP client and would like to give it a try, please do let me know 👍 |
@PandaWhisperer We're now getting closer to v1.0 and adapters can now live in their own repos. This is just a proof of concept, but it may go on becoming Faraday 1.0's first official external adapter ❤️ If you're still interested in that adapter and have some time, I'd happily add you as a collaborator in that project so you can maintain and improve it over time. |
@PandaWhisperer In case you're still planning on using it and you're interested, I'd like to renew the invite on adding you as a collaborator in that repo |
Summary
Recently found out about HTTP - The Gem! a.k.a. HTTP.rb. Yet another HTTP client for Ruby, but looks like a pretty neat one.
Would be cool if Faraday had an adapter for it.
Details
I'm willing to help with that, in fact, I'm considering writing it myself. Would just need a few pointers to get started, and answers to the following questions:
The text was updated successfully, but these errors were encountered: