4 module Network.HTTP.Lucu.Chunk
10 import Control.Applicative
11 import Data.Attoparsec.Char8
13 import Network.HTTP.Lucu.Headers
14 import Network.HTTP.Lucu.Parser.Http
16 chunkHeader ∷ (Integral a, Bits a) ⇒ Parser a
17 {-# INLINEABLE chunkHeader #-}
18 chunkHeader = do len ← hexadecimal
25 = skipMany ( char ';' *>
28 (token <|> quotedStr) )
30 chunkFooter ∷ Parser ()
33 chunkTrailer ∷ Parser Headers
34 chunkTrailer = headers