0.4.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseRFC 8288 specifies the convention for parsing the Link header.
use nom_rfc8288::complete::{link_strict, LinkData, LinkParam};
let link_data = r#"<https://example.com>; rel="origin"; csv="one,two""#;
let parsed = link_strict(link_data).unwrap();
assert_eq!(
parsed,
vec![
Some(
LinkData {
url: "https://example.com",
params: vec![
LinkParam {
key: "rel",
val: Some("origin".to_owned()),
},
LinkParam {
key: "csv",
val: Some("one,two".to_owned()),
}
],
}
),
]
);See the pre-commit quick start guide for how to setup pre-commit.