StreamingOutput is an interface that defines just "write(OutputStream)". I failed to find a solution to create a ReadStream<Buffer> that would wrap the StreamingOutput (the implementations of which produce the various reponse bodies by implementing said "write") and be used with a Pump.
Has anyone found this approach useful and found a solution and is willing to share? Hints are highly appreciated.
Kind regards
Dominique
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/34c757fa-44e2-43e1-a5a2-ad1d62efa915%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's not clear to me what you want to achieve. Are you using Vert.x inside a JAX-RS application ?
2018-04-26 23:13 GMT+02:00 domi <domi....@gmail.com>:
In a JAX-RS application, I hand a StreamingOutput to the Response object, in order to efficiently write to the OutputStream of the HTTP connection as the data (which can be hundreds of megabytes) is produced, thereby avoiding memory allocation.
StreamingOutput is an interface that defines just "write(OutputStream)". I failed to find a solution to create a ReadStream<Buffer> that would wrap the StreamingOutput (the implementations of which produce the various reponse bodies by implementing said "write") and be used with a Pump.
Has anyone found this approach useful and found a solution and is willing to share? Hints are highly appreciated.
Kind regards
Dominique
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5889d2b2-8e58-4151-a5d7-07c435d28ada%40googlegroups.com.