This is an example of a rust http test client that i used to run test periodically. use clap ::{ Parser , ValueEnum }; use indicatif ::{ ProgressBar , ProgressStyle }; use reqwest ::{ Client , Method }; use std :: collections :: HashMap ; use tokio :: time ::{ sleep , Duration }; // Added tokio sleep use serde_json :: Value ; #[ derive ( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , ValueEnum , Debug )] enum HttpMethod { Get , Post , Put , } #[ derive ( Parser , Debug )] #[ command ( author , version , about = " A simple HTTP load tester " )] struct Config { /// HTTP Method to use #[ arg ( short , long , value_enum , default_value_t = HttpMethod :: Get )] method : HttpMethod , /// Target URL endpoint #[ arg ( short , long )] url : String , /// Number of tests to run #[ arg ( short , long , ...