File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ impl StatusCode {
51
51
}
52
52
}
53
53
54
+ #[ derive( Debug , PartialEq ) ]
54
55
struct StatusLine {
55
56
http_version : Version ,
56
57
status_code : StatusCode ,
@@ -77,6 +78,7 @@ impl StatusLine {
77
78
/// Wrapper over the list of headers associated with a HTTP Response.
78
79
/// When creating a ResponseHeaders object, the content type is initialized to `text/plain`.
79
80
/// The content type can be updated with a call to `set_content_type`.
81
+ #[ derive( Debug , PartialEq ) ]
80
82
pub struct ResponseHeaders {
81
83
content_length : i32 ,
82
84
content_type : MediaType ,
@@ -164,6 +166,7 @@ impl ResponseHeaders {
164
166
/// the body is initialized to `None` and the header is initialized with the `default` value. The body
165
167
/// can be updated with a call to `set_body`. The header can be updated with `set_content_type` and
166
168
/// `set_server`.
169
+ #[ derive( Debug , PartialEq ) ]
167
170
pub struct Response {
168
171
status_line : StatusLine ,
169
172
headers : ResponseHeaders ,
You can’t perform that action at this time.
0 commit comments