Struct monoio_http_client::Builder
source · pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
pub fn new() -> Self
pub fn http1_client(self) -> Self
pub fn http2_client(self) -> Self
pub fn http_auto(self) -> Self
pub fn max_idle_connections(self, conns: usize) -> Self
pub fn http2_max_frame_size(self, sz: u32) -> Self
pub fn http2_max_send_buf_size(self, sz: usize) -> Self
pub fn http2_max_concurrent_reset_streams(self, max: usize) -> Self
pub fn http2_initial_stream_window_size(self, size: u32) -> Self
pub fn http2_initial_connection_window_size(self, size: u32) -> Self
pub fn http2_max_concurrent_streams(self, max: u32) -> Self
pub fn build(self) -> Client
pub fn build_with_connector<C>(self, connector: C) -> Client<C>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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