From: Alan Chen Date: 2002-09-13T02:09:36+09:00 Subject: Re: Proxy Server On Thu, Sep 12, 2002 at 11:20:46AM +0900, GOTO Kentaro wrote: > I'm planing to modify WEBrick#HTTPProxy to use WEBrick's own > HTTPClient instead of Net::HTTP to solve this problem. But anything > about its detail have not decided still now. If you have any idea on > design of HTTPClient, please discuss at webricken list. > http://www.notwork.org/ipr/webrick/#ml > > Thanks, > > -- Gotoken I've been peeking at libcurl which implements an optional callback every time a block of data is received on the socket. This allows you to write your own callback to route the data block. So we could initiate a download, and have a callback write the received blocks to multiple destinations at once - in my case, to the file system and the requesting apt-get client. -- Alan Chen Digikata LLC http://digikata.com