#cookies #load #cookie-jar #txt #file #save

cookies-rs

Load cookies.txt and save into CookieJar

2 releases

0.1.1 Apr 5, 2020
0.1.0 Apr 5, 2020

#9 in #cookie-jar

Custom license

7KB
120 lines

cookies-rs Provide a macro to load your Cookies.txt into a CookieJar.

Usage

Add dependencies to Cargo.toml

cookies-rs = "*"

And load Cookies from file:

use cookies_rs::load_cookies;

let jar = load_cookies!("/home/cookies.txt").unwrap();
for cookie in jar.iter() {
    println!("{:?}", cookie);
}

Dependencies

~4.5–6MB
~116K SLoC