Hi Ivy team I want to build a JAX-RS API returning response in a streaming manner (chunked transfer encoding). The code looks like below:
Full code here: http://pastebin.com/tEAMGFB3 If I do
the response would be:
If I comment out the line ...
...the error disappears. Is there anyway to fix the access to asked 03.10.2016 at 14:50 Genzer Hawker |
You can achieve it by using internal API that can change in future versions without any comment. Use a custom StreamingOutput class which does the ivy context setup:
Then you can implement any logic that requires the Ivy.XYZ() methods within the answered 03.10.2016 at 16:44 Reguel Werme... ♦♦ Wow, it works like a charm. However, this will remain as an unofficially supported trick from now on?
(03.10.2016 at 18:43)
Genzer Hawker
If we change the internal code some when, we can talk about whether it makes sense to include something likes this
(04.10.2016 at 15:05)
Reguel Werme... ♦♦
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 03.10.2016 at 14:50
Seen: 3,390 times
Last updated: 04.10.2016 at 15:05