Struct vertx_rust::http::client::WebClient
source · pub struct WebClient { /* private fields */ }
Implementations§
source§impl WebClient
impl WebClient
pub fn new() -> Self
pub fn blocking_body(body: Body) -> Result<Vec<u8>, Error>
pub async fn get_body(body: Body) -> Result<Vec<u8>, Error>
pub fn blocking_get(&self, url: &'static str) -> Result<Response<Body>, Error>
pub fn blocking_request( &self, request: Request<Body> ) -> Result<Response<Body>, Error>
pub fn request(&self, request: Request<Body>) -> ResponseFuture
pub fn get(&self, url: &'static str) -> ResponseFuture
Auto Trait Implementations§
impl !RefUnwindSafe for WebClient
impl Send for WebClient
impl Sync for WebClient
impl Unpin for WebClient
impl !UnwindSafe for WebClient
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