netscape-cookie-file-parser 0.1.0

Parse Netscape/curl cookie jar files while preserving raw cookie bytes.
Documentation
# 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 preserves string-like fields as raw bytes so non-UTF-8 cookie jar data can
round-trip through the parser.

```rust
use std::io::Cursor;

use netscape_cookie_file_parser::{parse, CookiePrefix};

let jar = Cursor::new(
    b"# Netscape HTTP Cookie File\n\
      .example.com\tTRUE\t/foo\tFALSE\t0\tpublic\tyes\n\
      #HttpOnly_.example.com\tTRUE\t/\tTRUE\t0\t__Secure-SID\tabc\n",
);

let cookies = parse(jar).unwrap();

assert_eq!(cookies.len(), 2);
assert_eq!(cookies[0].name, b"public");
assert_eq!(cookies[0].path, b"/foo");
assert!(cookies[1].http_only);
assert_eq!(cookies[1].prefix, CookiePrefix::Secure);
```