You'll have to handle chunking yourself; it should be relatively simple to do.
On Wed, Feb 11, 2015 at 2:22 PM, Sandeep Davu <sandeep.d...@gmail.com> wrote: > Who will be responsible for chunking? Plugin has access to response and not > chunked data. If Intercept writes a raw byte stream, how does the data get > chunked? > > > Sandeep. > > On Wed, Feb 11, 2015 at 1:51 PM, James Peach <jpe...@apache.org> wrote: > > > > > > On Feb 11, 2015, at 11:35 AM, Sandeep Davu <sandeep.d...@gmail.com> > > wrote: > > > > > > How to send chunked data on Server Intercept Plugin? The content length > > is > > > not known before hand. Idea is to stream data as it becomes > available. I > > > am assuming the intercept send data needs to know that the data is > > chunked. > > > > The server intercept writes a raw byte stream, so you can do whatever you > > want. If you want to write a chinked response, just write it as if your > > plugin was a real HTTP server (which, effectively, it is). Take a look at > > example/intercept/intercept.cc. > > > > J > > > > >