easyhttpmock 0.1.1

EasyHttpMock is a simple HTTP mock server for testing HTTP clients.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum EasyHttpMockError {
    #[error("Server error: {0}")]
    Server(#[from] ServerError),
}

#[derive(Debug, Clone, Error, PartialEq)]
pub enum ServerError {
    #[error("Server start error: {0}")]
    Start(String),
    #[error("Server stop error: {0}")]
    Stop(String),
}