oxidy 0.5.0

Fast & Minimum Web Framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub(crate) async fn get_vec(obj: &[(String, String)], key: String) -> Option<String> {
    let mut value: Option<String> = None;

    for (k, v) in obj {
        if k.to_owned().to_lowercase() == key.to_lowercase() {
            value = Some(v.to_owned());
            break;
        }
    }

    value
}