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(&mut self) -> &mut Self
pub fn http2_client(&mut self) -> &mut Self
pub fn http_auto(&mut self) -> &mut Self
pub fn max_idle_connections(&mut self, conns: usize) -> &mut Self
pub fn http2_max_frame_size(&mut self, sz: u32) -> &mut Self
pub fn http2_max_send_buf_size(&mut self, sz: usize) -> &mut Self
pub fn http2_max_concurrent_reset_streams(&mut self, max: usize) -> &mut Self
pub fn http2_initial_stream_window_size(&mut self, size: u32) -> &mut Self
pub fn http2_initial_connection_window_size(&mut self, size: u32) -> &mut Self
pub fn http2_max_concurrent_streams(&mut self, max: u32) -> &mut Self
pub fn build_http1(self) -> Client
pub fn build_http2(self) -> Client
pub fn build_auto(self) -> Client
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