The content type the request body is transferred as.
This is a severe limitation of
servant-foreign currently, as
we only allow the content type to be
JSON no user-defined
content types. (
ReqBodyMultipart is not actually implemented.)
Thus, any routes looking like this will work:
"foo" :> Get '[JSON] Foo
while routes like
"foo" :> Get '[MyFancyContentType] Foo
will fail with an error like
• JSON expected in list '[MyFancyContentType]