-
Notifications
You must be signed in to change notification settings - Fork 33
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
build: Micronaut Framework to 3.8.3 #1231
Conversation
1. We released a release called v3.6.5 so the regular expression needed to change in the tests 2. We were not testing the regular client which does streaming, both tests tested the low level client despite their names
@sdelamo 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to use a StreamingHttpClient
now?
NOTE: Instead of `retrieve` we could have used `jsonStream`. You can use `jsonStream()` to stream arrays of type `application/json` or | ||
JSON streams of type `application/x-json-stream`. If we use `retrieve`, such as in the previous code listing, the operation will not block. | ||
However, it will not return until all the data has been received from the server. In the case of a JSON array that would be the whole array. | ||
However, if you are interested in just the first element of the array, `jsonStream` provides a better alternative since it starts streaming data from the server without needing the whole response. | ||
For example, `jsonStream().firstElement()` will only parse the first item in a JSON array. Hence it is more efficient. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this, as jsonStream
is not a method of HttpClient
and I considered it too complex for this guide to start talking about the StreamingHttpClient at this point in the docs
As discussed, I split out another test which tests the JSON stream endpoint using the StreamingHttpClient |
I ported your StreamingHttpClient test here: #1236 |
No description provided.