diff options
author | Teddy Wing | 2020-06-23 23:50:02 +0200 |
---|---|---|
committer | Teddy Wing | 2020-06-23 23:50:02 +0200 |
commit | d005c2017cfc5150ab6890d610cc097780e495ce (patch) | |
tree | 1095b19ccdedb5852428a94302cf40bcb0665d51 /src | |
parent | ede3004cf563e4d46c0e8afa5fd1e18732de6c69 (diff) | |
download | fastcgi-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.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } } |