Network.HTTP.Media.Charset

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 #

Suitable for HTTP charset as defined in RFC7231.

Specifically:

    charset = token / "*"

#### Instances

Instances details

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