Macro kvarn::prelude::utils::starts_with_any
source · macro_rules! starts_with_any { ($e:expr, $($match:expr),* $(,)?) => { ... }; }
Expand description
Tests if the first arguments starts with any of the following.
§Examples
let example = "POST /api/username HTTP/3";
assert!(
kvarn_utils::starts_with_any!(example, "GET" , "HEAD" , "POST")
);