Trait bevy_defer_http::HyperHttpClientExt
source · 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§
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
Object Safety§
This trait is not object safe.