Skip to content

snylonue/nescookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nescookie

A netscape cookie file parser.

docs.rs | crates.io

Usage

// open a file directly
let jar = nescookie::open("/path/to/cookie/file").unwrap();

// parse a string
let content = ".pixiv.net	TRUE	/	TRUE	1784339332	p_ab_id	7\n";
let jar = nescookie::parse(content).unwrap();

// parse to an existing `CookieJar`
let builder = nescookie::CookieJarBuilder::with_jar(existing_jar);
// res is a `CookieJar`
let res = builder.open("/path/to/cookie/file").unwrap().finish(); // or builder.parse(content)...

About

a netscape cookie file parser

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages