fix(net)!: Remove MatchOn
`MatchOn` was left behind from the v1 implementation and isn't used by anything in the v2 implementation.
This commit is contained in:
parent
711c76a600
commit
a84643e6ae
2 changed files with 1 additions and 23 deletions
|
@ -95,12 +95,6 @@
|
||||||
//! # }
|
//! # }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! All [MatchOn] options:
|
|
||||||
//! - [MatchOn::Method] (default)
|
|
||||||
//! - [MatchOn::Url] (default)
|
|
||||||
//! - [MatchOn::Headers]
|
|
||||||
//! - [MatchOn::Body].
|
|
||||||
//!
|
|
||||||
//! Once you have defined all your expected responses, convert the [MockNet] into a [Net].
|
//! Once you have defined all your expected responses, convert the [MockNet] into a [Net].
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
|
@ -155,7 +149,7 @@ mod system;
|
||||||
|
|
||||||
pub use result::{Error, Result};
|
pub use result::{Error, Result};
|
||||||
|
|
||||||
pub use system::{MatchOn, MockNet, Net};
|
pub use system::{MockNet, Net};
|
||||||
|
|
||||||
pub use http::HeaderMap;
|
pub use http::HeaderMap;
|
||||||
pub use http::Method;
|
pub use http::Method;
|
||||||
|
|
|
@ -12,22 +12,6 @@ use super::{Error, Result};
|
||||||
/// A list of planned requests and responses
|
/// A list of planned requests and responses
|
||||||
type Plans = Vec<Plan>;
|
type Plans = Vec<Plan>;
|
||||||
|
|
||||||
/// The different ways to match a request.
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
|
||||||
pub enum MatchOn {
|
|
||||||
/// The request must have a specific HTTP Request Method.
|
|
||||||
Method,
|
|
||||||
|
|
||||||
/// The request must have a specific URL.
|
|
||||||
Url,
|
|
||||||
|
|
||||||
/// The request must have a specify HTTP Body.
|
|
||||||
Body,
|
|
||||||
|
|
||||||
/// The request must have a specific set of HTTP Headers.
|
|
||||||
Headers,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A planned request and the response to return
|
/// A planned request and the response to return
|
||||||
///
|
///
|
||||||
/// Contains a list of the criteria that a request must meet before being considered a match.
|
/// Contains a list of the criteria that a request must meet before being considered a match.
|
||||||
|
|
Loading…
Reference in a new issue