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 chunkHeaderP ∷ (Integral a, Bits a) ⇒ Parser a
17 {-# INLINEABLE chunkHeaderP #-}
18 chunkHeaderP = do len ← hexadecimal
25 = skipMany ( char ';' *>
28 (token <|> quotedStr) )
30 chunkFooterP ∷ Parser ()
33 chunkTrailerP ∷ Parser Headers
34 chunkTrailerP = headersP