http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.46k stars 119 forks source link

re-export `http_types::{Error, Result}` at the crate root #163

Closed goto-bus-stop closed 4 years ago

goto-bus-stop commented 4 years ago

So you can easily refer to it directly, like:

async fn some_fn_that_makes_a_request() -> Result<(), surf::Error> {}

instead of needing a separate

use surf::http_types::Error as HttpError;