Copyright | (c) 2015 Athan Clark |
---|---|
License | BSD-3 |
Maintainer | athan.clark@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
- lookupFileExt :: Maybe AcceptHeader -> Maybe FileExt -> FileExtMap -> Maybe Response
- fileExtsToMiddleware :: MonadBaseControl IO m stM => Extractable stM => FileExtListenerT m a -> MiddlewareT m
- module Network.Wai.Middleware.ContentType.Types
- module Network.Wai.Middleware.ContentType.Blaze
- module Network.Wai.Middleware.ContentType.ByteString
- module Network.Wai.Middleware.ContentType.Cassius
- module Network.Wai.Middleware.ContentType.Clay
- module Network.Wai.Middleware.ContentType.Json
- module Network.Wai.Middleware.ContentType.Julius
- module Network.Wai.Middleware.ContentType.Lucid
- module Network.Wai.Middleware.ContentType.Lucius
- module Network.Wai.Middleware.ContentType.Text
Documentation
lookupFileExt :: Maybe AcceptHeader -> Maybe FileExt -> FileExtMap -> Maybe Response Source #
Given an HTTP Accept
header and a content type to base lookups off of, and
a map of responses, find a response.
fileExtsToMiddleware :: MonadBaseControl IO m stM => Extractable stM => FileExtListenerT m a -> MiddlewareT m Source #