content length

This commit is contained in:
Martin Algesten
2018-06-16 12:35:51 +02:00
parent 0d9d5d3096
commit 7e3ad42674
5 changed files with 64 additions and 15 deletions

View File

@@ -35,6 +35,16 @@ pub struct Request {
redirects: u32,
}
impl ::std::fmt::Debug for Request {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::result::Result<(), ::std::fmt::Error> {
write!(
f,
"Request[{} {}, {}, {:?}]",
self.method, self.path, self.query, self.headers
)
}
}
enum Payload {
Empty,
Text(String),