http-media-0.8.1.1: Processing HTTP Content-Type and Accept headers

Safe Haskell | Safe-Inferred
Language | Haskell2010

Network.HTTP.Media.Charset

Description

Defines the `Charset` accept header with an `Accept` instance for use in encoding negotiation.

Synopsis

- data Charset

# Documentation

data Charset Source #

Suitable for HTTP charset as defined in RFC7231.

Specifically:

    charset = token / "*"

#### Instances

Instances details

IsString Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods fromString :: String -> Charset Source #
Show Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods showsPrec :: Int -> Charset -> ShowS Source # show :: Charset -> String Source # showList :: [Charset] -> ShowS Source #
Eq Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods (==) :: Charset -> Charset -> Bool Source # (/=) :: Charset -> Charset -> Bool Source #
Ord Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods compare :: Charset -> Charset -> Ordering Source # (<) :: Charset -> Charset -> Bool Source # (<=) :: Charset -> Charset -> Bool Source # (>) :: Charset -> Charset -> Bool Source # (>=) :: Charset -> Charset -> Bool Source # max :: Charset -> Charset -> Charset Source # min :: Charset -> Charset -> Charset Source #
Accept Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods parseAccept :: ByteString -> Maybe Charset Source # matches :: Charset -> Charset -> Bool Source # moreSpecificThan :: Charset -> Charset -> Bool Source # hasExtensionParameters :: Proxy Charset -> Bool Source #
RenderHeader Charset Source # |
Instance details Defined in Network.HTTP.Media.Charset.Internal Methods renderHeader :: Charset -> ByteString Source #