()
| 59 | } |
| 60 | |
| 61 | fn build_routes() -> impl Filter<Extract = impl Reply> + Clone { |
| 62 | warp::post() |
| 63 | .and(warp::path("bad_words")) |
| 64 | .and(warp::query()) |
| 65 | .map(|_: HashMap<String, String>| ()) |
| 66 | .and(warp::path::end()) |
| 67 | .and(warp::body::bytes()) |
| 68 | .and_then(Self::check_profanity) |
| 69 | } |
| 70 | |
| 71 | pub fn oneshot(&self) -> OneshotHandler { |
| 72 | let (tx, rx) = oneshot::channel::<i32>(); |
nothing calls this directly
no outgoing calls
no test coverage detected