Skip to content

Feature/own http client#1

Merged
JanHolger merged 6 commits into
devfrom
feature/own-http-client
Jan 19, 2022
Merged

Feature/own http client#1
JanHolger merged 6 commits into
devfrom
feature/own-http-client

Conversation

@JanHolger

Copy link
Copy Markdown
Member

This implements an own http client and adds web socket support. The old HttpUrlConnection based client can still be used by setting .legacyMode() on the client but for websocket connections it will always use the new one.

@JanHolger JanHolger marked this pull request as draft December 5, 2021 12:34
@JanHolger

Copy link
Copy Markdown
Member Author

Cookies are not yet processed

x7airworker
x7airworker previously approved these changes Dec 5, 2021
@JanHolger JanHolger marked this pull request as ready for review January 18, 2022 22:17
@JanHolger

Copy link
Copy Markdown
Member Author

I abstracted the http implementation now and set the default back to java.net.HttpUrlConnection however the user can choose to use the currently experimental "Simple" implementation as well as Apache HttpClient or even custom implementations. I also thought about implementing OkHttp as is it's another major Http Library but Apache is a solid ground and in case users really need it, it can be implemented in a single class by the user. Cookie support is also done independent of the implementation now so it should work for all 3 implementations.

@JanHolger JanHolger changed the base branch from master to dev January 18, 2022 22:26
@JanHolger JanHolger requested a review from x7airworker January 18, 2022 22:29
@JanHolger JanHolger merged commit 2aa717a into dev Jan 19, 2022
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