linnet-conduit: Conduit-backed support for streaming in Linnet

[ library, linnet ] [ Propose Tags ] [ Report a vulnerability ]

Please see the documentation at http://linnet.io


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.0.1
Dependencies base (>=4.7 && <5), bytestring (>=0.10.8.2), conduit (>=1.3.1.1), http-types (>=0.12.3), linnet (>=0.4.0.1), wai (>=3.2.2.1), warp (>=3.2.28) [details]
License LicenseRef-Apache
Copyright 2019 Sergey Kolbasov
Author Sergey Kolbasov
Maintainer whoisliar@gmail.com
Category linnet
Home page https://github.com/haskell-linnet/linnet#readme
Bug tracker https://github.com/haskell-linnet/linnet/issues
Source repo head: git clone https://github.com/haskell-linnet/linnet
Uploaded by sergeykolbasov at 2019-09-18T20:39:01Z
Distributions
Downloads 1602 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-09-18 [all 1 reports]

Readme for linnet-conduit-0.4.0.1

[back to package description]

Linnet Conduit

This package adds support of streaming requests & responses in Linnet library using conduit.

import Linnet.Conduit

Import above exposes:

  • orphan instance of ToResponse ct (ConduitT () a m ())
  • orphan instance of ToResponse ApplicationJson (ConduitT () a m ()) that intersperse JSON chunks with newline symbol
  • streamBody :: Endpoint m (ConduitT BL.ByteString BL.ByteString m ()) endpoint