Safe Haskell | Safe-Inferred |
---|
Network.HTTP.Accept
- selectAcceptType :: [String] -> [ByteString] -> Maybe String
Documentation
Arguments
:: [String] | List of supported MIME types, in preferred order |
-> [ByteString] | List of types from Accept, pre-sorted with no q |
-> Maybe String | Just the selected supported type, or else Nothing |
Select which Accept type to use