cookiestxt-rs

Crates.iocookiestxt-rs
lib.rscookiestxt-rs
version0.1.4
sourcesrc
created_at2024-03-01 13:59:05.194001
updated_at2024-04-02 08:55:55.066932
descriptionParses cookie.txt/netscape cookie format
homepage
repositoryhttps://git.sr.ht/~zenomat/cookiestxt-rs
max_upload_size
id1158933
size16,551
Zenomat (TheOnAndOnlyZenomat)

documentation

README

This is a wrapper crate for cookies, that implements the [std::convert::From] for several other cookie types/crates, like cookie, cookie_store and the thirtyfour cookie type.

It also supports creating cookies from a string in the cookies.txt/netscape format.

let mut cookies_file = File::open("foo.txt")?;
let mut cookie_txt = String::new();
cookies_file.read_to_string(&mut cookie_txt)?;

let cookies = Cookies::try_from(&cookie_txt)?;
Commit count: 0

cargo fmt