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

Copyright(c) Sergey Kolbasov 2019
LicenseApache License 2.0
Safe HaskellNone
LanguageHaskell2010

Linnet.Conduit

Contents

Description

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

See the detailed documentation on linnet.io.

Synopsis

Documentation

streamBody :: forall m i. MonadIO m => Endpoint m (ConduitT i ByteString m ()) Source #

Endpoint that reads chunked request body as ConduitT stream of lazy ByteString. Matches if body is chunked. Beware that it also pauses slowloris timeout in Warp as it reads request body using lazy IO.

Orphan instances

(Encode ApplicationJson a, NaturalTransformation m IO, MonadIO m) => ToResponse ApplicationJson (ConduitT () a m ()) Source # 
Instance details

Methods

toResponse :: Status -> [Header] -> ConduitT () a m () -> Response #

(Encode (Proxy ct) a, KnownSymbol ct, NaturalTransformation m IO, MonadIO m) => ToResponse (Proxy ct) (ConduitT () a m ()) Source # 
Instance details

Methods

toResponse :: Status -> [Header] -> ConduitT () a m () -> Response #