aboutsummaryrefslogtreecommitdiff
path: root/examples/form
diff options
context:
space:
mode:
Diffstat (limited to 'examples/form')
-rw-r--r--examples/form/Cargo.toml2
-rw-r--r--examples/form/src/main.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/form/Cargo.toml b/examples/form/Cargo.toml
index c6eb1c3..69901c5 100644
--- a/examples/form/Cargo.toml
+++ b/examples/form/Cargo.toml
@@ -9,7 +9,7 @@ publish = false
[dependencies]
hyper = { version = "0.14", features = ["full"] }
-sputnik = {path = "../../"}
+sputnik = { path = "../../", features = ["hyper_body"] }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
thiserror = "1.0" \ No newline at end of file
diff --git a/examples/form/src/main.rs b/examples/form/src/main.rs
index e354f9f..9e6748e 100644
--- a/examples/form/src/main.rs
+++ b/examples/form/src/main.rs
@@ -4,8 +4,8 @@ use hyper::{Method, Server, StatusCode, Body};
use hyper::http::request::Parts;
use hyper::http::response::Builder;
use serde::Deserialize;
-use sputnik::{mime, request::{SputnikParts, SputnikBody}, response::SputnikBuilder};
-use sputnik::request::FormError;
+use sputnik::{mime, request::SputnikParts, response::SputnikBuilder};
+use sputnik::hyper_body::{SputnikBody, FormError};
type Response = hyper::Response<Body>;