1 2 3 4 5 6 7 8 9 10
pub(crate) async fn parse_method(header: String) -> String { header .lines() .next() .expect("[Error] Fail to read header lines for Method") .split_whitespace() .next() .unwrap_or_default() .to_owned() }