mockito 0.17.1

HTTP mocking for Rust.
Documentation
<p>
  <p align="center"><img src="https://raw.githubusercontent.com/lipanski/mockito/master/docs/logo-black.png"></p>
  <p align="center">
    <a href="https://crates.io/crates/mockito"><img src="https://img.shields.io/crates/v/mockito.svg"></a>
    <a href="https://docs.rs/mockito"><img src="https://docs.rs/mockito/badge.svg"></a>
    <a href="https://travis-ci.org/lipanski/mockito"><img src="https://travis-ci.org/lipanski/mockito.svg?branch=master"></a>
    <a href="https://ci.appveyor.com/project/lipanski/mockito"><img src="https://ci.appveyor.com/api/projects/status/github/lipanski/mockito?branch=master&svg=true"></a>
  </p>
  <p align="center"><em>HTTP mocking for Rust!</em></p>
</p>

Get it on [crates.io](https://crates.io/crates/mockito/).

Documentation available at <https://docs.rs/mockito>.

Before upgrading, make sure to check out the [changelog](https://github.com/lipanski/mockito/releases).

## Contribution Guidelines

1. Check the existing issues and pull requests.
2. One commit is one feature - consider squashing.
3. :shipit:

## Development

Run tests:

```sh
cargo test
```

Run [clippy](https://github.com/rust-lang/rust-clippy)
```sh
rustup component add clippy-preview
touch src/lib.rs  # Touch the file to force cargo to rerun clippy on the project
cargo clippy --lib --tests --all-features -- -D clippy::pedantic -D clippy::nursery
```

Release:

```sh
cargo package && cargo publish
```

Run benchmarks:

```sh
rustup install nightly
rustup run nightly cargo bench
```

## Debug output from tests

In your project, add [`env_logger`](https://crates.rs/crates/env_logger) crate, and init it before each test:

```rust
#[test]
fn example_test() {
    let _ = env_logger::try_init();
    /* … */
}
```

and run tests with:

```sh
RUST_LOG=mockito=debug cargo test
```

---

Logo courtesy to [http://niastudio.net](http://niastudio.net) :ok_hand: