snap-core-0.8.0: Snap: A Haskell Web Framework (core interfaces and types)

Safe HaskellNone

Snap.Internal.Parsing

Synopsis

Documentation

sp, letter, digit :: Parser CharSource

Parsers for different tokens in an HTTP request.

generateFS :: (Word8 -> Bool) -> FastSetSource

spaces :: Parser [Char]Source

Parser for zero or more spaces.

pHeaders :: Parser [(ByteString, ByteString)]Source

Parser for request headers.

tokenTable :: FastSetSource

parseUrlEncoded :: ByteString -> Map ByteString [ByteString]Source

Parses a string encoded in application/x-www-form-urlencoded format.