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

Safe HaskellNone
LanguageHaskell2010

Data.CURL.CookieJar.PrettyPrinter

Description

Pretty-printer to cookie jar format for the Cookie and CookieJar types from http-types.

WARNING: This is not a full serialization of the Cookie and CookieJar types. The Netscape cookie jar format does not support all of the fields.

In particular, the following fields of Cookie are not represented:

Synopsis

Documentation

prettyCookieJar :: CookieJarHeader -> CookieJar -> Builder Source #

Print a cookie jar in the Netscape/Mozilla format, with optional leading header

data CookieJarHeader Source #

Specify what header, if any, to print at the top of the cookie jar

Some other parsers (like Perl's) require the header to be present

prettyCookieJarHeader :: CookieJarHeader -> Builder Source #

Print a cookie jar header

prettyCookie :: Cookie -> Builder Source #

Print an individual cookie on a single line

  • Re-export This is re-exported from Builder for convenience

toLazyByteString :: Builder -> ByteString #

Execute a Builder and return the generated chunks as a lazy ByteString. The work is performed lazy, i.e., only when a chunk of the lazy ByteString is forced.