haskell-servant/servant

Add a test for streaming of response bodies using lazy Bytestrings in servant-server

Open

#612 创建于 2016年10月9日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)Haskell (422 fork)batch import
help wantedservant-server

仓库指标

Star
 (1,953 star)
PR 合并指标
 (平均合并 5小时 49分钟) (30 天内合并 2 个 PR)

描述

Currently unfortunately this is not supported. MimeRender is the class that is used to create response bodies. mimeRender returns lazy ByteStrings so servant-server could stream the response lazily, but I have no idea whether it does that or not. And even if it did we have no test making sure that this property will not break at some point.

Btw, there's a test that makes sure streaming of request bodies works in servant-server: StreamingSpec.hs. I think a test for streaming responses would look similar.

贡献者指南