Trait opentelemetry_http::ResponseExt[][src]

pub trait ResponseExt: Sized {
    fn error_for_status(self) -> Result<Self, TraceError>;
}

Methods to make working with responses from the HttpClient trait easier.

Required methods

fn error_for_status(self) -> Result<Self, TraceError>[src]

Turn a response into an error if the HTTP status does not indicate success (200 - 299).

Loading content...

Implementations on Foreign Types

impl<T> ResponseExt for Response<T>[src]

Loading content...

Implementors

Loading content...