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

ISPN-10431 REST client library #7236

Merged

Conversation

tristantarrant
Copy link
Member

@tristantarrant tristantarrant commented Aug 28, 2019

https://issues.jboss.org/browse/ISPN-10431

this will be needed by the new CLI and I've refactored the server testsuite to use this.
I've decided to go with OkHttp 3.x because:

  • OkHttp 4.x depends on Kotlin
  • we cannot use the JDK HttpClient as it is only available since JDK 11
  • AsyncHttpClient doesn't support HTTP/2 and is semi-abandoned
  • Apache HC 4 doesn't suppport HTTP/2 either
  • Apache HC 5 is still Beta

The backend can be replaced in the future (either Apache HC 5 when it becomes final or the JDK HttpClient when we baseline on JDK 11)

I've implemented support for Basic, Digest and Bearer authentication
I've left the Netty test client in the rest testsuite since it allows us to fine-tune some things like sending HTTP Upgrade headers even in plain text.

@tristantarrant tristantarrant force-pushed the ISPN-10431/rest_client branch 4 times, most recently from 223535f to 45f362a Compare August 30, 2019 15:10
@gustavocoding
Copy link

LGTM, waiting for CI

@tristantarrant
Copy link
Member Author

failures unrelated

@gustavocoding
Copy link

Conflicts

@tristantarrant
Copy link
Member Author

Rebased

@tristantarrant
Copy link
Member Author

@gustavonalle failures unrelated

@gustavocoding gustavocoding merged commit e95d5a2 into infinispan:master Sep 3, 2019
@gustavocoding
Copy link

merged, thanks @tristantarrant !

@tristantarrant tristantarrant deleted the ISPN-10431/rest_client branch January 21, 2020 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants