haskell-servant/servant

Dynamic Content Type

Open

#501 aperta il 7 mag 2016

Vedi su GitHub
 (14 commenti) (1 reazione) (0 assegnatari)Haskell (422 fork)batch import
enhancementhelp wantedrfcservant-client

Metriche repository

Star
 (1953 star)
Metriche merge PR
 (Merge medio 5h 49m) (2 PR mergiate in 30 g)

Descrizione

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.

Guida contributor