[go: up one dir, main page]

mockito 1.3.0

HTTP mocking for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mockito;

use std::time::Duration;

fn main() {
    let mut s = mockito::Server::new();

    s.mock("GET", "/").with_body("hello world");

    loop {
        std::thread::sleep(Duration::from_secs(1))
    }
}