[web-devel] wai and conduit 0.4 for proxy

Michael Snoyman michael at snoyman.com
Tue Apr 3 17:37:07 CEST 2012


On Tue, Apr 3, 2012 at 5:07 PM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
> Hello,
>
> I'm trying to catch up conduit 0.4. To pass requestBody of Request to
> ResponseSource of Response, we need to convert types as follows:
>
> Source (ResourceT IO) ByteString -> Source (ResourceT IO) (Flush Builder)
>
> The way which I could find is:
>
>     src $= CL.map (Chunk . byteStringToBuilder)
>
> Is this a right way? Or, is there another proper way?
>
> Cheers,
>
> --Kazu
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel

Looks good to me.

Michael



More information about the web-devel mailing list