minion-0.1.0.0: A Haskell introspectable web router
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Request.Body.Json

Synopsis

Documentation

reqJson Source #

Arguments

:: forall r m i ts. Introspection i Request (ReqBody '[Json] r) 
=> FromJSON r 
=> (MonadIO m, MonadThrow m) 
=> ValueCombinator i (WithReq m (ReqBody '[Json] r)) ts m

.

Extracts JSON from request

... /> reqJson @MyType .> ...