curl-cookiejar-0.1.0.0: Parsing and pretty-printing of cURL/wget cookie jars

Safe HaskellNone
LanguageHaskell2010

Data.CURL.CookieJar.Parser

Description

Attoparsec Parser for a cookie jar, and convenience function to run it |

Synopsis

Documentation

cookieJarParser :: Parser CookieJar Source #

Parser a cookie jar in the Netscape/Mozilla format

cookieParser :: Parser Cookie Source #

Parser for one cookieline in a cookie jar in the NetscapeMozilla format This will also consume any comment lines preceding the cookie line.

This parser recognizes the magic prefix @ and sets the appropriate field in the Cookie datatype

parseCookieJar :: ByteString -> Either String CookieJar Source #

Parse a cookie jar in the Netscape/Mozilla format