snap-core-0.5.2: Snap: A Haskell Web Framework (Core)

Snap.Internal.Parsing

Synopsis

- fullyParse :: ByteString -> Parser a -> Either String a
- parseNum :: Parser Int64
- digit :: Parser Char
- letter :: Parser Char
- sp :: Parser Char
- untilEOL :: Parser ByteString
- crlf :: Parser ByteString
- spaces :: Parser [Char]
- pSpaces :: Parser ByteString
- fieldChars :: Parser ByteString
- fieldCharTable :: Vector Bool
- pHeaders :: Parser [(ByteString, ByteString)]
- pWord :: Parser ByteString
- pQuotedString :: Parser ByteString
- isRFCText :: Char -> Bool
- matchAll :: [Char -> Bool] -> Char -> Bool
- pAvPairs :: Parser [(ByteString, ByteString)]
- pAvPair :: Parser (ByteString, ByteString)
- pParameter :: Parser (ByteString, ByteString)
- trim :: ByteString -> ByteString
- pValueWithParameters :: Parser (ByteString, [(CI ByteString, ByteString)])
- pContentTypeWithParameters :: Parser (ByteString, [(CI ByteString, ByteString)])
- pToken :: Parser ByteString
- isToken :: Char -> Bool
- strictize :: ByteString -> ByteString

# Documentation

fullyParse :: ByteString -> Parser a -> Either String a

parseNum :: Parser Int64

digit :: Parser Char

Parsers for different tokens in an HTTP request.

letter :: Parser Char

sp :: Parser Char

untilEOL :: Parser ByteString

crlf :: Parser ByteString

spaces :: Parser [Char]

Parser for zero or more spaces.

pSpaces :: Parser ByteString

fieldChars :: Parser ByteString

fieldCharTable :: Vector Bool

pHeaders :: Parser [(ByteString, ByteString)]

Parser for request headers.

pWord :: Parser ByteString

pQuotedString :: Parser ByteString

isRFCText :: Char -> Bool

matchAll :: [Char -> Bool] -> Char -> Bool

pAvPairs :: Parser [(ByteString, ByteString)]

pAvPair :: Parser (ByteString, ByteString)

pParameter :: Parser (ByteString, ByteString)

trim :: ByteString -> ByteString

pValueWithParameters :: Parser (ByteString, [(CI ByteString, ByteString)])

pContentTypeWithParameters :: Parser (ByteString, [(CI ByteString, ByteString)])

pToken :: Parser ByteString

isToken :: Char -> Bool

strictize :: ByteString -> ByteString