HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

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