pub fn mock_matches_request(
mock: &MockConfig,
method: &str,
path: &str,
headers: &HashMap<String, String>,
query_params: &HashMap<String, String>,
body: Option<&[u8]>,
) -> boolExpand description
Check if a request matches the given mock configuration
This function implements comprehensive request matching including:
- Method and path matching
- Header matching (with regex support)
- Query parameter matching
- Body pattern matching (exact, regex, JSONPath, XPath)
- Custom matcher expressions