Struct http_mitm_proxy::Communication
source · pub struct Communication {
pub client_addr: SocketAddr,
pub request: Request<UnboundedReceiver<Vec<u8>>>,
pub response: Receiver<Response<UnboundedReceiver<Vec<u8>>>>,
pub upgrade: Receiver<Upgrade>,
}Expand description
Communication between client and server.
Note: http-mitm-proxy observe by Communication basis, not Connection basis. Some Connections may belong to the same connection using keep-alive.
Fields§
§client_addr: SocketAddrClient address
request: Request<UnboundedReceiver<Vec<u8>>>Request from client. request.uri() is an absolute URI.
response: Receiver<Response<UnboundedReceiver<Vec<u8>>>>Response from server. It may fail to receive response when some error occurs. Currently, not way to know the error.
upgrade: Receiver<Upgrade>Upgraded connection. Proxy will upgrade connection only if response status is 101.
Auto Trait Implementations§
impl !RefUnwindSafe for Communication
impl Send for Communication
impl Sync for Communication
impl Unpin for Communication
impl !UnwindSafe for Communication
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more