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.

貢獻者指南