pub trait HyperHttpClientExt {
    // Required methods
    fn http_get(
        &self,
        uri: &str
    ) -> impl Future<Output = Result<Vec<u8>, HttpError>> + Send;
    fn http_request<T>(
        &self,
        request: Request<T>
    ) -> impl Future<Output = Result<Vec<u8>, HttpError>> + Send
       where T: Send + Body + 'static,
             T::Data: Send,
             T::Error: Error + Send + Sync;
}

Required Methods§

source

fn http_get( &self, uri: &str ) -> impl Future<Output = Result<Vec<u8>, HttpError>> + Send

source

fn http_request<T>( &self, request: Request<T> ) -> impl Future<Output = Result<Vec<u8>, HttpError>> + Send
where T: Send + Body + 'static, T::Data: Send, T::Error: Error + Send + Sync,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HyperHttpClientExt for AsyncWorldMut

source§

async fn http_get(&self, uri: &str) -> Result<Vec<u8>, HttpError>

source§

async fn http_request<T>( &self, request: Request<T> ) -> Result<Vec<u8>, HttpError>
where T: Send + Body + 'static, T::Data: Send, T::Error: Error + Send + Sync,

Implementors§