OrAnyStatus::or_any_status ergonomic helper

Some users might prefer to handle all HTTP responses as Response
regardless of status code.
This commit is contained in:
Martin Algesten
2021-01-16 10:54:11 +01:00
parent 0c467fee13
commit d627ef9704
2 changed files with 43 additions and 7 deletions

View File

@@ -293,7 +293,7 @@ mod testserver;
pub use crate::agent::Agent;
pub use crate::agent::AgentBuilder;
pub use crate::error::{Error, ErrorKind, Transport};
pub use crate::error::{Error, ErrorKind, OrAnyStatus, Transport};
pub use crate::header::Header;
pub use crate::proxy::Proxy;
pub use crate::request::Request;