haskell-servant/servant

Dynamic Content Type

Open

#501 aberto em 7 de mai. de 2016

Ver no GitHub
 (14 comments) (1 reaction) (0 assignees)Haskell (422 forks)batch import
enhancementhelp wantedrfcservant-client

Métricas do repositório

Stars
 (1.953 stars)
Métricas de merge de PR
 (Mesclagem média 5h 49m) (2 fundiu PRs em 30d)

Description

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.

Guia do colaborador