Struct monoio_http_client::Client
source · pub struct Client<B, C = PooledConnector<TcpConnector, Key, TcpStream, B>, CS = PooledConnector<TlsConnector, Key, ClientTlsStream<TcpStream>, B>> { /* private fields */ }
Implementations§
source§impl<B: Body<Data = Bytes, Error = HttpError>, C, CS> Client<B, C, CS>
impl<B: Body<Data = Bytes, Error = HttpError>, C, CS> Client<B, C, CS>
pub fn get<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn post<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn put<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn patch<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn delete<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn head<U>(&self, uri: U) -> ClientRequest<B, C, CS>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
Trait Implementations§
Auto Trait Implementations§
impl<B, C, CS> RefUnwindSafe for Client<B, C, CS>where B: RefUnwindSafe, C: RefUnwindSafe, CS: RefUnwindSafe,
impl<B, C = PooledConnector<TcpConnector, Key, TcpStream, B>, CS = PooledConnector<TlsConnector, Key, Stream<TcpStream, ClientConnection>, B>> !Send for Client<B, C, CS>
impl<B, C = PooledConnector<TcpConnector, Key, TcpStream, B>, CS = PooledConnector<TlsConnector, Key, Stream<TcpStream, ClientConnection>, B>> !Sync for Client<B, C, CS>
impl<B, C, CS> Unpin for Client<B, C, CS>where B: Unpin,
impl<B, C, CS> UnwindSafe for Client<B, C, CS>where B: UnwindSafe, C: RefUnwindSafe, CS: RefUnwindSafe,
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