Safe Haskell | None |
---|---|
Language | Haskell2010 |
- contentTypeMatches :: [MediaType] -> Handler s m Bool
- fromWaiRequest :: Request -> Request IO
- resourceToWai :: RoutingSpec s IO () -> Resource s IO -> s -> Application
Documentation
contentTypeMatches :: [MediaType] -> Handler s m Bool Source
Returns True
if the request's Content-Type
header is one of the
provided media types. If the Content-Type
header is not present,
this function will return True.
resourceToWai :: RoutingSpec s IO () -> Resource s IO -> s -> Application Source
Given a RoutingSpec
, a 404 resource, and a user state s
, construct a WAI Application
.