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.

  1. reqMethod :: forall ftype f . Functor f => (Method -> f Method) -> Req ftype -> f (Req ftype)

    servant-foreign Servant.Foreign

    No documentation available.

  2. reqReturnType :: forall ftype f . Functor f => (Maybe ftype -> f (Maybe ftype)) -> Req ftype -> f (Req ftype)

    servant-foreign Servant.Foreign

    No documentation available.

  3. reqUrl :: forall ftype f . Functor f => (Url ftype -> f (Url ftype)) -> Req ftype -> f (Req ftype)

    servant-foreign Servant.Foreign

    No documentation available.

  4. data Req ftype

    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.

  5. Req :: Url ftype -> Method -> [HeaderArg ftype] -> Maybe ftype -> Maybe ftype -> FunctionName -> ReqBodyContentType -> Req ftype

    servant-foreign Servant.Foreign.Internal

    No documentation available.

  6. data ReqBodyContentType

    servant-foreign Servant.Foreign.Internal

    See documentation of _reqBodyContentType

  7. ReqBodyJSON :: ReqBodyContentType

    servant-foreign Servant.Foreign.Internal

    No documentation available.

  8. ReqBodyMultipart :: ReqBodyContentType

    servant-foreign Servant.Foreign.Internal

    No documentation available.

  9. _reqBody :: Req ftype -> Maybe ftype

    servant-foreign Servant.Foreign.Internal

    Foreign type of the expected request body (ReqBody), if any

  10. _reqBodyContentType :: Req ftype -> ReqBodyContentType

    servant-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]
    

Page 504 of many | Previous | Next