From d005c2017cfc5150ab6890d610cc097780e495ce Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 23 Jun 2020 23:50:02 +0200 Subject: From: 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. --- src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 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 } } -- cgit v1.2.3