Safe Haskell | None |
---|---|
Language | Haskell2010 |
- contentLanguage :: [ByteString] -> ByteString -> Maybe ByteString
- rewriteByAcceptLanguage :: [([Text], [ByteString])] -> Middleware
Documentation
contentLanguage :: [ByteString] -> ByteString -> Maybe ByteString Source #
determine language based on language list and Accept-Language header
rewriteByAcceptLanguage :: [([Text], [ByteString])] -> Middleware Source #
rewrite based on content:language list and Accept-Language header