You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I read the HttpResponseMessage body as a stream one line at a time in zuul 2? I am currently doing the following:
@Override
HttpResponseMessage apply(HttpResponseMessage input) {
String text = input.getBodyAsText() //want to avoid reading the whole content
//read one line as a stream and process it
return input
}
I know that we can read content in chunks by overriding processContentChunk() method but there's no control on the size of each chunk. I want to be able to load and read one line at a time till I encounter newline char. Kindly suggest ways to stream the data (if it is possible in zuul 2).
The text was updated successfully, but these errors were encountered:
How can I read the HttpResponseMessage body as a stream one line at a time in zuul 2? I am currently doing the following:
I know that we can read content in chunks by overriding processContentChunk() method but there's no control on the size of each chunk. I want to be able to load and read one line at a time till I encounter newline char. Kindly suggest ways to stream the data (if it is possible in zuul 2).
The text was updated successfully, but these errors were encountered: