Function link_lenient

Source
pub fn link_lenient<'a, E>(
    input: &'a str,
) -> Result<Vec<Option<LinkData<'a>>>, LinkParseError>
where E: ParseError<&'a str>, Err<VerboseError<&'a str>>: From<Err<E>>,
Expand description

Same as link_strict, except that empty parameters are leniently parsed. They don’t result in an error and are skipped when collecting parameters.

use nom_rfc8288::complete::link_lenient;

let link_data = r#"<https://example.com>; rel="origin";; csv="one,two""#;
assert!(link_lenient(link_data).is_ok());