pub struct HttpForwarderService<B>where
B: Body,{ /* private fields */ }Expand description
Forward HTTP requests over a connection stream
Implementations§
Source§impl<B> HttpForwarderService<B>
impl<B> HttpForwarderService<B>
Sourcepub async fn http<T>(stream: T) -> Result<HttpForwarderService<B>>
pub async fn http<T>(stream: T) -> Result<HttpForwarderService<B>>
Forward HTTP requests over a connection stream
Sourcepub async fn https<T>(
domain: &str,
stream: T,
) -> Result<HttpForwarderService<B>>
pub async fn https<T>( domain: &str, stream: T, ) -> Result<HttpForwarderService<B>>
Wrap the connection stream in TLS and forward HTTP requests over it The domain is used to verify the TLS certificate The native root certificates are used to verify the TLS certificate
TODO: allow customizing the TLS configuration
Trait Implementations§
Source§impl<B> HttpRequest<B> for HttpForwarderService<B>
impl<B> HttpRequest<B> for HttpForwarderService<B>
Auto Trait Implementations§
impl<B> Freeze for HttpForwarderService<B>
impl<B> !RefUnwindSafe for HttpForwarderService<B>
impl<B> Send for HttpForwarderService<B>where
B: Send,
impl<B> Sync for HttpForwarderService<B>where
B: Send,
impl<B> Unpin for HttpForwarderService<B>
impl<B> !UnwindSafe for HttpForwarderService<B>
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
Source§impl<T> GetRaftConfiguration for T
impl<T> GetRaftConfiguration for T
Source§fn raft_configuration<'life0, 'async_trait>(
&'life0 mut self,
token: Secret<String>,
) -> Pin<Box<dyn Future<Output = Result<RaftConfiguration, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn raft_configuration<'life0, 'async_trait>(
&'life0 mut self,
token: Secret<String>,
) -> Pin<Box<dyn Future<Output = Result<RaftConfiguration, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Get vault pod’s raft configuration
Source§fn await_raft_configuration<'life0, 'async_trait>(
&'life0 mut self,
token: Secret<String>,
cond: impl Condition<RaftConfiguration> + Send + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<Option<RaftConfiguration>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn await_raft_configuration<'life0, 'async_trait>(
&'life0 mut self,
token: Secret<String>,
cond: impl Condition<RaftConfiguration> + Send + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<Option<RaftConfiguration>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Wait for vault pod’s raft configuration to match the provided condition
Source§impl<T> GetSealStatus for T
impl<T> GetSealStatus for T
Source§fn seal_status<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<PodSealStatus, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn seal_status<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<PodSealStatus, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Get vault pod’s seal status
Source§fn await_seal_status<'life0, 'async_trait>(
&'life0 mut self,
cond: impl Condition<PodSealStatus> + Send + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<Option<PodSealStatus>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn await_seal_status<'life0, 'async_trait>(
&'life0 mut self,
cond: impl Condition<PodSealStatus> + Send + 'async_trait,
) -> Pin<Box<dyn Future<Output = Result<Option<PodSealStatus>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Wait for vault pod’s seal status to match the provided condition
Source§impl<T> GetUnsealKeys for T
impl<T> GetUnsealKeys for T
Source§fn get_unseal_keys<'life0, 'life1, 'async_trait>(
&'life0 mut self,
path: &'life1 PathAndQuery,
token: Secret<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Secret<String>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn get_unseal_keys<'life0, 'life1, 'async_trait>(
&'life0 mut self,
path: &'life1 PathAndQuery,
token: Secret<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Secret<String>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Get the unseal keys from a Vault secret
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more