servant-proto-lens-0.1.0.0: servant API Content-Type instances for use with proto-lens generated modules
Servant.API.ContentTypes.Proto
data Proto Source #
Instances
Methods
contentType :: Proxy Proto ctype -> MediaType #
contentTypes :: Proxy Proto ctype -> NonEmpty MediaType #
mimeRender :: Proxy Proto m -> a -> ByteString #
mimeUnrender :: Proxy Proto m -> ByteString -> Either String a #
mimeUnrenderWithType :: Proxy Proto m -> MediaType -> ByteString -> Either String a #