• Post Reply Bookmark Topic Watch Topic
  • New Topic

Http chunking delivering response incrementally.  RSS feed

 
pawan chopra
Ranch Hand
Posts: 419
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have read couple of articles about delivering response incrementally to the browser but I am not able to find detail explanation with example. Can somebody point me to right direction for this. Basically what I am looking for is to understand how I can start delivering response in chunks to the browser while server is working on rest of the response. Thanks.
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There does seem to be a shortage of articles. Probably because there's not much to it.

The Wikipedia article explains the general concept:http://en.wikipedia.org/wiki/Chunked_transfer_encoding

An example of coding for chunking is here: http://mrbool.com/keep-alive-connections-and-chunked-response-in-http-1-1-with-java/27915

There are also third-party utility classes that simplify the process of chunking by doing the trivial stuff for you. Apache.org's libraries contain one such class.

 
pawan chopra
Ranch Hand
Posts: 419
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!