From a6df5432fdb19617930c2dab33294ef8b6ae37e8 Mon Sep 17 00:00:00 2001 From: Vagelis Prokopiou Date: Thu, 25 Mar 2021 15:11:35 +0200 Subject: [PATCH 1/2] Using the hyper provided const POST, to match the example in https://hyper.rs/guides/client/advanced/ Signed-off-by: Vagelis Prokopiou --- .idea/workspace.xml | 8 ++++++++ src/client/client.rs | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000000..518fd17b25 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/client/client.rs b/src/client/client.rs index 10cbc37b63..37a3251a7a 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -141,12 +141,12 @@ where /// ``` /// # #[cfg(feature = "runtime")] /// # fn run () { - /// use hyper::{Body, Client, Request}; + /// use hyper::{Body, Method, Client, Request}; /// /// let client = Client::new(); /// /// let req = Request::builder() - /// .method("POST") + /// .method(Method::POST) /// .uri("http://httpbin.org/post") /// .body(Body::from("Hallo!")) /// .expect("request builder"); From 8cdc4fd9e8b7fdfca0f9a4d3fda5684fa2ebeb79 Mon Sep 17 00:00:00 2001 From: Vagelis Prokopiou Date: Thu, 25 Mar 2021 15:15:17 +0200 Subject: [PATCH 2/2] Removing the .idea/workspace.xml. Submitted by accident Signed-off-by: Vagelis Prokopiou --- .idea/workspace.xml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 518fd17b25..0000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file