diff --git a/Cargo.toml b/Cargo.toml index d80ab391..13e83b46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,5 +38,4 @@ slab = "0.4.2" [dev-dependencies] femme = "1.1.0" -surf = "1.0.1" tempdir = "0.3.7" diff --git a/examples/surf-web.rs b/examples/surf-web.rs deleted file mode 100644 index 0215e31e..00000000 --- a/examples/surf-web.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! Creates a HTTP request to the official Rust website. - -#![feature(async_await)] - -use async_std::task; - -fn main() -> Result<(), surf::Exception> { - task::block_on(async { - let url = "https://www.rust-lang.org"; - let mut response = surf::get(url).await?; - let body = response.body_string().await?; - - dbg!(url); - dbg!(response.status()); - dbg!(response.version()); - dbg!(response.headers()); - dbg!(body.len()); - - Ok(()) - }) -}