pub struct Toxy { /* private fields */ }
Expand description
Provides a token exchange aware reverse proxy.
Implementations§
Source§impl Toxy
impl Toxy
Sourcepub fn with_token_exchanger(
config: UpstreamConfig,
token_exchanger: Box<dyn TokenExchanger + Sync + Send>,
) -> Toxy
pub fn with_token_exchanger( config: UpstreamConfig, token_exchanger: Box<dyn TokenExchanger + Sync + Send>, ) -> Toxy
Creates a new Toxy with the given configuration and TokenExchanger
pub async fn handle( &self, client_ip: IpAddr, req: Box<Request<Body>>, ) -> Result<Response<Body>, Infallible>
Auto Trait Implementations§
impl Freeze for Toxy
impl !RefUnwindSafe for Toxy
impl Send for Toxy
impl Sync for Toxy
impl Unpin for Toxy
impl !UnwindSafe for Toxy
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