Crates.io | cookiestxt-rs |
lib.rs | cookiestxt-rs |
version | 0.1.4 |
source | src |
created_at | 2024-03-01 13:59:05.194001 |
updated_at | 2024-04-02 08:55:55.066932 |
description | Parses cookie.txt/netscape cookie format |
homepage | |
repository | https://git.sr.ht/~zenomat/cookiestxt-rs |
max_upload_size | |
id | 1158933 |
size | 16,551 |
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)?;