counterfeit_core 0.2.1

Backend code for counterfeit crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use hyper::{Body, Request};
use std::path::{Path, PathBuf};

use crate::Error;

pub trait Dispatcher {
    fn dispatch(
        &self,
        base_directory: impl AsRef<Path>,
        request: &Request<Body>,
    ) -> Result<PathBuf, Error>;
}