haskell-servant/servant

Dynamic Content Type

Open

#501 创建于 2016年5月7日

在 GitHub 查看
 (14 评论) (1 反应) (0 负责人)Haskell (422 fork)batch import
enhancementhelp wantedrfcservant-client

仓库指标

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

描述

The library is great! But there is one thing that I've been trying to figure out how to do: setting a content type on servant client depending on the input. How do I let the user define the content type? When I create the client routes, the content type is always defined next to ReqBody. Is there any way to do that?

A use case is file upload. For example, an avatar could have many different mime type values.

贡献者指南