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
GroovyCastException when using http client 4.4/4.5 APIs #704
Comments
rest-assured depends on http-client 4.5.2 (see here) and I cannot use APIs available since 4.3 like HttpClientBuilder. Seems like compatibility bug to me. |
Then it's by design, even two major rest-assured versions later. |
Yes this is indeed known and the reason for not supporting this is because I have a limited amount of time working with this project (mostly) on my spare time and (afaict) this will require a HUGE refactoring of REST Assured. You're very welcome to help out, this is an open source project after all. See #497 for more info. |
Sorry for creating a duplicate. Thanks for fast response. Already cloned repo, but I see it's non trivial task. |
No problem. I really wish to solve this but unfortunately it'll require some (hard to come by) time :( |
Using rest-assured 3.0.0, and configuring it to use http client with custom settings, using apache http client 4.4+ APIs like:
results in no compile time errors, but at runtime class cast exception gets thrown:
Am I doing something wrong?
If it's compatibility bug, not sure if it would be enough, but I guess replacing AbstractHttpClient references with CloseableHttpClient or HttpClient would be a start.
The text was updated successfully, but these errors were encountered: