Trait feignhttp::HttpResponse
source · [−]pub trait HttpResponse {
fn status(&self) -> StatusCode;
fn none<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
Self: 'async_trait;
fn text<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where
Self: 'async_trait;
fn vec<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
A trait of HTTP response.
Required Methods
source
fn status(&self) -> StatusCode
sourcefn none<'async_trait>(