pub struct ProxyBuilder { /* private fields */ }Implementations§
Source§impl ProxyBuilder
impl ProxyBuilder
pub fn from_config(config: Config) -> Self
pub fn request_transform( self, name: impl Into<String>, t: Arc<dyn RequestTransform>, ) -> Self
pub fn response_transform( self, name: impl Into<String>, t: Arc<dyn ResponseTransform>, ) -> Self
Sourcepub fn build(self) -> Result<BuiltProxy>
pub fn build(self) -> Result<BuiltProxy>
Build the context store (static ⊕ env, env wins) and compile every route.
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyBuilder
impl !UnwindSafe for ProxyBuilder
impl Freeze for ProxyBuilder
impl Send for ProxyBuilder
impl Sync for ProxyBuilder
impl Unpin for ProxyBuilder
impl UnsafeUnpin for ProxyBuilder
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