(method: &str, target: &str)
| 580 | use super::*; |
| 581 | |
| 582 | fn request(method: &str, target: &str) -> L7Request { |
| 583 | L7Request { |
| 584 | action: method.to_string(), |
| 585 | target: target.to_string(), |
| 586 | query_params: crate::l7::rest::parse_target_query(target).unwrap().1, |
| 587 | raw_header: format!("{method} {target} HTTP/1.1\r\nHost: example.com\r\n\r\n") |
| 588 | .into_bytes(), |
| 589 | body_length: BodyLength::None, |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | #[test] |
| 594 | fn classifies_simple_query() { |