telegram-api-0.3.1.0: Telegram Bot API bindings

Safe HaskellNone
LanguageHaskell2010

Servant.Client.MultipartFormData

Synopsis

Documentation

class ToMultipartFormData a where Source

A type that can be converted to a multipart/form-data value.

Methods

toMultipartFormData :: a -> [Part] Source

Convert a Haskell value to a multipart/form-data-friendly intermediate type.

data MultipartFormDataReqBody a Source

Extract the request body as a value of type a.

Instances

(ToMultipartFormData b, MimeUnrender * ct a) => HasClient ((:>) * * (MultipartFormDataReqBody b) (Post ((:) * ct cts) a)) Source 
type Client ((:>) * * (MultipartFormDataReqBody b) (Post ((:) * ct cts) a)) = b -> EitherT ServantError IO a Source