-
Notifications
You must be signed in to change notification settings - Fork 411
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
Flag ZClient.request as deprecated #3133
Comments
Just my 2 cents: The issue with the w.r.t the |
To give more context, the thing is (and maybe I'm not like most people) I don't use the companion object at all. I have a service/class that gets "injected" a For sure, we'd need more feedback on the matter to make a choice :) |
/bounty $75 for deprecating This way, anyone using an instance of |
💎 $75 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
💡 @varshith257 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
I've seen that with 3.0.0-RC10 (and 3.0.0), the
ZClient
was refactored regarding the need forScope
which is great.However I noticed that the
ZClient.request
method is deprecated in favour ofbatched
andstreaming
only in the companion object:zio-http/zio-http/shared/src/main/scala/zio/http/ZClient.scala
Lines 296 to 297 in 8c70090
If you already have an instance of
ZClient
, the methodrequest
is still accessible and it's not obvious that it's oriented for streaming usage:zio-http/zio-http/shared/src/main/scala/zio/http/ZClient.scala
Line 178 in 8c70090
As a user, I would've expected to see that the
request
method (of the class) should not be used directly.I guess there's not that much we can do now without breaking binary compatibility though. 🤷
The text was updated successfully, but these errors were encountered: