feat(http): Implement Debug for HttpReader/Writer.

Also derives it for Responses, since that's easy now.
This commit is contained in:
Brandon Sanderson
2015-04-08 17:51:18 -07:00
parent ad797b0200
commit 2f606c88bd
3 changed files with 26 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ use net::{Fresh, Streaming};
use version;
/// The outgoing half for a Tcp connection, created by a `Server` and given to a `Handler`.
#[derive(Debug)]
pub struct Response<'a, W = Fresh> {
/// The HTTP version of this response.
pub version: version::HttpVersion,