Trait opentelemetry_http::ResponseExt
source · [−]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
sourcefn 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).