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>
[src]
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).