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

build: Micronaut Framework to 3.8.3 #1231

Closed
wants to merge 4 commits into from
Closed

build: Micronaut Framework to 3.8.3 #1231

wants to merge 4 commits into from

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Jan 28, 2023

No description provided.

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
@timyates
Copy link
Contributor

timyates commented Feb 2, 2023

@sdelamo 🎉

Copy link
Contributor Author

@sdelamo sdelamo left a 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?

Comment on lines -59 to -64
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.

Copy link
Contributor

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

@timyates
Copy link
Contributor

timyates commented Feb 2, 2023

As discussed, I split out another test which tests the JSON stream endpoint using the StreamingHttpClient

@sdelamo
Copy link
Contributor Author

sdelamo commented Feb 9, 2023

I ported your StreamingHttpClient test here: #1236

@sdelamo sdelamo closed this Feb 9, 2023
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