<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 6:07 AM, Alexandre Mazari <span dir="ltr"><<a href="mailto:scaroo@gmail.com" target="_blank">scaroo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">In an effort to build an Haskell client library for the Firebase service [0], which rely heavily on HTTP event source/server sent events [1], I am looking for an HTTP client lib supporting this spec.</p>
<p dir="ltr">AFAIK, both WAI and yesod handle the mechanism server-side but nor http-client, wreq or http-streams seem to provide the client counterpart.</p>
<p dir="ltr">Am I looking in the wrong direction?</p></blockquote></div><br>At least http-client and http-streams should support this use case easily, you'll just have to parse the stream yourself. The easiest way is to write a parser using attoparsec and lift that into a stream transformer. The io-streams library has native support for this (<a href="http://hackage.haskell.org/package/io-streams-1.3.0.0/docs/System-IO-Streams-Attoparsec.html#v:parserToInputStream">http://hackage.haskell.org/package/io-streams-1.3.0.0/docs/System-IO-Streams-Attoparsec.html#v:parserToInputStream</a>), conduits supply a similar thing in the conduit-extra package.<br><br clear="all"><div>Greg</div>-- <br><div class="gmail_signature">Gregory Collins <<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>></div>
</div></div>