pub struct HttpConnector { /* private fields */ }Expand description
HTTP connector — forwards requests to an upstream URL using hyper client.
Implementations§
Trait Implementations§
Source§impl TransportConnector for HttpConnector
impl TransportConnector for HttpConnector
Source§fn forward<'life0, 'async_trait>(
&'life0 self,
request: ProxyRequest,
) -> Pin<Box<dyn Future<Output = ProxyResult<ProxyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn forward<'life0, 'async_trait>(
&'life0 self,
request: ProxyRequest,
) -> Pin<Box<dyn Future<Output = ProxyResult<ProxyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Forward a request to the upstream and return the response.
Source§fn connector_name(&self) -> &str
fn connector_name(&self) -> &str
Human-readable connector name.
Auto Trait Implementations§
impl Freeze for HttpConnector
impl RefUnwindSafe for HttpConnector
impl Send for HttpConnector
impl Sync for HttpConnector
impl Unpin for HttpConnector
impl UnsafeUnpin for HttpConnector
impl UnwindSafe for HttpConnector
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