Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
reqMethod :: forall ftype f . Functor f => (Method -> f Method) -> Req ftype -> f (Req ftype)servant-foreign Servant.Foreign No documentation available.
-
servant-foreign Servant.Foreign No documentation available.
reqUrl :: forall ftype f . Functor f => (Url ftype -> f (Url ftype)) -> Req ftype -> f (Req ftype)servant-foreign Servant.Foreign No documentation available.
-
servant-foreign Servant.Foreign.Internal Full description of an endpoint in your API, generated by listFromAPI. It should give you all the information needed to generate foreign language bindings. Every field containing ftype will use the foreign type mapping specified via HasForeignType (see its docstring on how to set that up). See https://docs.servant.dev/en/stable/tutorial/ApiType.html for accessible documentation of the possible content of an endpoint.
-
servant-foreign Servant.Foreign.Internal No documentation available.
-
servant-foreign Servant.Foreign.Internal See documentation of _reqBodyContentType
ReqBodyJSON :: ReqBodyContentTypeservant-foreign Servant.Foreign.Internal No documentation available.
ReqBodyMultipart :: ReqBodyContentTypeservant-foreign Servant.Foreign.Internal No documentation available.
_reqBody :: Req ftype -> Maybe ftypeservant-foreign Servant.Foreign.Internal Foreign type of the expected request body (ReqBody), if any
_reqBodyContentType :: Req ftype -> ReqBodyContentTypeservant-foreign Servant.Foreign.Internal 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]