hudsucker 0.24.0

MITM HTTP/S proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{HttpHandler, WebSocketHandler};

/// A No-op handler.
///
/// When using this handler, HTTP requests and responses and WebSocket messages will not be
/// modified.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub struct NoopHandler(());

impl NoopHandler {
    pub(crate) fn new() -> Self {
        NoopHandler(())
    }
}

impl HttpHandler for NoopHandler {}
impl WebSocketHandler for NoopHandler {}