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

Apache HttpClient 5 integration #1017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidkron
Copy link

Based on the ticket I created:
#1016

I implemented this integration of Apache HttpClient 5.1 for Scribe. My code is more or less a copy of the existing HttpClient 4.x implementation (https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache) with the necessary modifications to dependencies and the package structure that changed with httpclient5.

What I am not 100% sure about, is the whole asynchronous stuff from HttpClient as I primarily have experience with the synchronous API. The whole asynchronous API in HttpClient 5 doesn't seem to be using the same approach anymore as before with the HttpResponse containing also the HttpEntity/InputStream. But there are some compatibilty classes available, so that's why I choose to stay as close to the previous implementation as possible, especially since the Scribe API primarily is using InputStream.

I used and tested the same implementation also in our project, but as I just implemented it, I don't yet have any experience over a longer period of usage.

@dizzzz
Copy link

dizzzz commented Jul 26, 2023

Looks like a valuable addition to me....

@dizzzz
Copy link

dizzzz commented Jul 26, 2023

Can I offer some help to have this pulled in? Is there a procedure for this?

@davidkron
Copy link
Author

Can I offer some help to have this pulled in? Is there a procedure for this?

I actually don't know about the procedure myself, it is my first contribution to this project. The readme just says that pull requests are welcome.

If you do have any suggestions or knowledge on how I should proceed, you are very welcome to help!

@darktyco
Copy link

Definitely a valuable feature to have in scribe since Spring 6 / Spring Boot 3 have moved on to HttpClient 5

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.

None yet

3 participants