on fb71eb8 help sign in
servant/src/Servant/API/ReqBody.hs
10 lines 234 B history raw
1{-# LANGUAGE PolyKinds #-}
2module Servant.API.ReqBody where
4-- | Extract the request body as a value of type @a@.
5--
6-- Example:
7--
8-- > -- POST /books
9-- > type MyApi = "books" :> ReqBody Book :> Post Book
10data ReqBody a