netscape-cookie-file-parser
Parser for Netscape/curl cookie jar files.
Netscape cookie files are line-oriented and store seven tab-separated fields: domain, tail-match flag, path, secure flag, expires, name, and value. This crate keeps string-like fields as byte buffers so non-UTF-8 cookie jar data can be represented without UTF-8 conversion.
By default, parse removes one leading dot from the domain field, accepts
curl's legacy missing-path records with / as the path, and preserves ordinary
path fields as they appear in the file.
use Cursor;
use ;
let jar = new;
let cookies = parse.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert!;
assert_eq!;