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

Safe HaskellNone

Snap.Internal.Parsing

Synopsis

Documentation

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

parseNum :: Parser Int64Source

sp :: Parser CharSource

Parsers for different tokens in an HTTP request.

letter :: Parser CharSource

Parsers for different tokens in an HTTP request.

digit :: Parser CharSource

Parsers for different tokens in an HTTP request.

untilEOL :: Parser ByteStringSource

crlf :: Parser ByteStringSource

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

spaces :: Parser [Char]Source

Parser for zero or more spaces.

pSpaces :: Parser ByteStringSource

fieldChars :: Parser ByteStringSource

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

Parser for request headers.

pWord :: Parser ByteStringSource

pQuotedString :: Parser ByteStringSource

isRFCText :: Char -> BoolSource

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

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

pAvPair :: Parser (ByteString, ByteString)Source

pParameter :: Parser (ByteString, ByteString)Source

trim :: ByteString -> ByteStringSource

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

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

pToken :: Parser ByteStringSource

isToken :: Char -> BoolSource

tokenTable :: FastSetSource

parseToCompletion :: Parser a -> ByteString -> Maybe aSource

type DList a = [a] -> [a]Source

pUrlEscaped :: Parser ByteStringSource

urlDecode :: ByteString -> Maybe ByteStringSource

Decodes an URL-escaped string (see http://tools.ietf.org/html/rfc2396.html#section-2.4)

urlEncode :: ByteString -> ByteStringSource

urlEncodeBuilder :: ByteString -> BuilderSource

URL-escapes a string (see http://tools.ietf.org/html/rfc2396.html#section-2.4) into a Builder.

hexd :: Char -> BuilderSource

finish :: Result a -> Result aSource

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

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

buildUrlEncoded :: Map ByteString [ByteString] -> BuilderSource

printUrlEncoded :: Map ByteString [ByteString] -> ByteStringSource

parseCookie :: ByteString -> Maybe [Cookie]Source

strictize :: ByteString -> ByteStringSource

unsafeFromHex :: (Enum a, Num a, Bits a) => ByteString -> aSource

unsafeFromInt :: (Enum a, Num a, Bits a) => ByteString -> aSource