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

Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.HTTP.Media.Language

Description

Defines the Language accept header with an Accept instance for use in language negotiation.

Synopsis

Documentation

data Language Source

Suitable for HTTP language-ranges as defined in RFC2616.

Specifically:

language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

toParts :: Language -> [CI ByteString] Source

Converts Language to a list of its language parts. The wildcard produces an empty list.