Trait opentelemetry_http::ResponseExt [−][src]
pub trait ResponseExt: Sized { fn error_for_status(self) -> Result<Self, TraceError>; }
Expand description
Methods to make working with responses from the HttpClient
trait easier.
Required methods
fn error_for_status(self) -> Result<Self, TraceError>
fn error_for_status(self) -> Result<Self, TraceError>
Turn a response into an error if the HTTP status does not indicate success (200 - 299).