[web-devel] Re: Lazy simpleHTTP
Henning Thielemann
lemming at henning-thielemann.de
Sat Nov 29 10:45:53 EST 2008
On Sat, 29 Nov 2008, Henning Thielemann wrote:
> On Thu, 27 Nov 2008, Henning Thielemann wrote:
>
>> I have HTTP-3001.0.4 and I like to check the HTTP response headers before
>> downloading the entire document.
>
> I have tried to solve this on my own. I have written a wrapper to any stream
> type. It first reads the entire document lazily into a string and then ships
> its contents when readBlock or readLine is called. However, the program
> blocks on 'close' now and I don't know why. (See LazyStream.example)
Is anyone else interested in getting HTTP response bodies lazily in
general and trying my code in particular? Maybe some of the experts have
an idea, why 'close' blocks.
More information about the web-devel
mailing list