[Haskell-cafe] Unwanted http-conduit buffering of chunked request body?
Manuel Gómez
targen at gmail.com
Wed Oct 30 05:06:19 UTC 2013
On Tue, Oct 29, 2013 at 11:24 PM, Michael Snoyman <michael at snoyman.com> wrote:
> In order to get the behavior you're looking for, you need to flush the
> Builders to cause the buffers to be emptied. The important change is to your
> say function:
>
> say :: Monad m => ByteString -> Source m Builder
> say bs = yield (fromByteString bs <> flush)
>
> I've set this up as a SoH tutorial as well:
> https://www.fpcomplete.com/user/snoyberg/random-code-snippets/http-conduit-buffering-tutorial
Thanks again, Michael! That’s precisely what I needed!
More information about the Haskell-Cafe
mailing list