HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleservant-0.20.3.0Haskell2010

Servant.API.ReqBody

  • 2 types
  • Packageservant-0.20.3.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceReqBody.hs
typetype ReqBody = ReqBody' '[Required, Strict]
#

Extract the request body as a value of type a.

Example:

Example2 expressions
-- POST /bookstype MyApi = "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book