[Haskell-cafe] HTTP client library supporting Server sent events ?
greg at gregorycollins.net
Wed Apr 29 13:20:32 UTC 2015
On Wed, Apr 29, 2015 at 6:07 AM, Alexandre Mazari <scaroo at gmail.com> wrote:
> In an effort to build an Haskell client library for the Firebase service
> , which rely heavily on HTTP event source/server sent events , I am
> looking for an HTTP client lib supporting this spec.
> AFAIK, both WAI and yesod handle the mechanism server-side but nor
> http-client, wreq or http-streams seem to provide the client counterpart.
> Am I looking in the wrong direction?
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 (
conduits supply a similar thing in the conduit-extra package.
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe