Utility functions used internally in the Lucu httpd. These functions may be useful too for something else.
Documentation
isWhiteSpace :: Char -> BoolSource
is isWhiteSpace
cTrue
iff c is one of SP, HT, CR
and LF.
parseWWWFormURLEncoded :: String -> [(String, String)]Source
parseWWWFormURLEncoded "aaa=bbb&ccc=ddd" ==> [("aaa", "bbb"), ("ccc", "ddd")]