[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: [Haskell-cafe] Unwanted http-conduit buffering of chunked request body?
From:       Manuel_Gómez <targen () gmail ! com>
Date:       2013-10-30 4:54:19
Message-ID: CAJWnFaO4imoaZGUTPHtWHzY8FxpFz3UzUDn-UT5XtmDjcAfa6w () mail ! gmail ! com
[Download RAW message or body]

On Tue, Oct 29, 2013 at 11:24 PM, Michael Snoyman <michael@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!
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic