[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Should http-client automatically consume unconsumed inpu
From: |
Peter Bex |
Subject: |
[Chicken-users] Should http-client automatically consume unconsumed input? [Was: Re: ssax examples could not run] |
Date: |
Tue, 21 Jun 2011 21:53:45 +0200 |
User-agent: |
Mutt/1.4.2.3i |
Hi again,
Also, about this piece of code:
> (pp (call-with-input-request
> "http://modis.ispras.ru/Lizorkin/XML/poem.xml"
> #f (lambda (p)
> (let ((sxml (ssax:xml->sxml p '())))
> ;; Consume the rest of the stream, ssax does not
> ;; fully read until the end.
> (read-string #f p)
> sxml))))
Does it make sense to have http-client automatically consume any
remaining data after the user-supplied reader returns?
What about continuations? Or perhaps it should be read when the
*next* request is done?
Thoughts? Opinions?
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth