wai-middleware-content-type-0.6.1.2: Route to different middlewares based on the incoming Accept header.

Copyright(c) 2015 Athan Clark
LicenseBSD-3
Maintainerathan.clark@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.ContentType

Contents

Description

 

Synopsis

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.

Re-Exports