|
Network.HTTP.Lucu.Parser.Http |
|
|
Description |
This is an auxiliary parser utilities for parsing things related
on HTTP protocol.
In general you don't have to use this module directly.
|
|
Synopsis |
|
|
|
Documentation |
|
|
isCtl c is False iff 0x20 <= c < 0x7F.
|
|
|
isSeparator c is True iff c is one of HTTP
separators.
|
|
|
isChar c is True iff c <= 0x7f.
|
|
|
isToken c is equivalent to not (isCtl c || isSeparator
c)
|
|
|
listOf p is similar to sepBy p
(char ',') but it allows any
occurrences of LWS before and after each tokens.
|
|
|
token is equivalent to many1 $
satisfy isToken
|
|
|
lws is an HTTP LWS: crlf?
(sp | ht)+
|
|
|
text accepts one character which doesn't satisfy isCtl.
|
|
|
separator accepts one character which satisfies isSeparator.
|
|
|
quotedStr accepts a string surrounded by double quotation
marks. Quotes can be escaped by backslashes.
|
|
|
qvalue accepts a so-called qvalue.
|
|
Produced by Haddock version 2.4.2 |