macro_rules! http_targets {
($($url:expr => $status:expr),* $(,)?) => { ... };
}Expand description
Create HTTP targets from a compact syntax.
Returns a Result<Vec<Target>, WaitForError> that contains either all valid targets
or the first error encountered.
ยงExamples
use waitup::http_targets;
let targets = http_targets![
"https://api.example.com/health" => 200,
"http://localhost:8080/status" => 204,
]?;
assert_eq!(targets.len(), 2);