aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2020-06-23 23:50:02 +0200
committerTeddy Wing2020-06-23 23:50:02 +0200
commitd005c2017cfc5150ab6890d610cc097780e495ce (patch)
tree1095b19ccdedb5852428a94302cf40bcb0665d51 /src
parentede3004cf563e4d46c0e8afa5fd1e18732de6c69 (diff)
downloadfastcgi-conduit-d005c2017cfc5150ab6890d610cc097780e495ce.tar.bz2
From<fastcgi::Request>: Make a note to add the request body
So far we only added metadata and headers to the request. We also need to include the body.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 975308a..cef04da 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,7 +1,7 @@
extern crate fastcgi;
extern crate http;
-use std::io::Write;
+use std::io::{BufReader, Write};
use http::{Request, Response};
use http::request;
@@ -59,8 +59,14 @@ impl From<fastcgi::Request> for http::request::Builder {
http_request = http_request.header(&k, &v);
}
+ // TODO: Add request body
+
http_request
+ // let body = BufReader::new(request.stdin());
+ //
+ // http_request.body(body)
+
// HTTP_* params become headers
}
}