http-accept-0.1: Functions for working with HTTP Accept headers

Safe HaskellSafe-Inferred

Network.HTTP.Accept

Synopsis

Documentation

selectAcceptTypeSource

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