httpmock
pub fn mock(method: Method, path: &str) -> Mock
A convenience function to create an HTTP mock. It automatically calls Mock::new and already sets a path and an HTTP method. Please refer to Mock struct for a more detailed description.