pub struct HttpAllowRuleBuilder { /* private fields */ }Expand description
Builder for HttpAllowRule.
Implementations§
Source§impl HttpAllowRuleBuilder
impl HttpAllowRuleBuilder
pub fn new(scheme: impl Into<String>, host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn path(self, path: impl Into<String>) -> Self
pub fn methods<I, S>(self, methods: I) -> Self
pub fn allow_headers<I, S>(self, headers: I) -> Self
pub fn max_request_bytes(self, bytes: u64) -> Self
pub fn max_response_bytes(self, bytes: u64) -> Self
pub fn follow_redirects(self, enabled: bool) -> Self
pub fn redirect_policy(self, policy: impl Into<String>) -> Self
pub fn build(self) -> HttpAllowRule
Auto Trait Implementations§
impl Freeze for HttpAllowRuleBuilder
impl RefUnwindSafe for HttpAllowRuleBuilder
impl Send for HttpAllowRuleBuilder
impl Sync for HttpAllowRuleBuilder
impl Unpin for HttpAllowRuleBuilder
impl UnwindSafe for HttpAllowRuleBuilder
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