
19 May
2010
19 May
'10
4:37 p.m.
schlepptop:
Don Stewart schrieb:
Or use things from the download-curl package, which provides a nice openURL function.
The openURL function from TagSoup is lazy, which the proposed replacement 'getResponseBody =<< simpleHTTP (getRequest x)' is not. Is the openURL function from download-curl lazy?
Yes, see: Network.Curl.Download.Lazy.openLazyURI though I think it is possible that I strictified the code. Have a play around with it if it doesn't meet your needs -- should be /trivial/ to ensure it is chunk-wise lazy.