amagi 0.1.3

Rust SDK, CLI, and Web API service skeleton for multi-platform social web adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(crate) fn parse_cookie_entries(cookie: &str) -> Vec<(String, String)> {
    cookie
        .split(';')
        .filter_map(|pair| {
            let trimmed = pair.trim();
            let index = trimmed.find('=')?;
            Some((
                trimmed[..index].trim().to_owned(),
                trimmed[index + 1..].trim().to_owned(),
            ))
        })
        .collect()
}