pub struct HttpProxy { /* private fields */ }Expand description
HTTP proxy server.
Implementations§
Source§impl HttpProxy
impl HttpProxy
Sourcepub async fn new(
filter: DomainFilter,
mitm_socket_path: Option<String>,
) -> Result<Self, SandboxError>
pub async fn new( filter: DomainFilter, mitm_socket_path: Option<String>, ) -> Result<Self, SandboxError>
Create a new HTTP proxy server.
Sourcepub fn start(&mut self) -> Result<(), SandboxError>
pub fn start(&mut self) -> Result<(), SandboxError>
Start the proxy server.
Auto Trait Implementations§
impl !Freeze for HttpProxy
impl !RefUnwindSafe for HttpProxy
impl Send for HttpProxy
impl Sync for HttpProxy
impl Unpin for HttpProxy
impl !UnwindSafe for HttpProxy
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