Skip to content

Commit 9830b66

Browse files
morichoacatangiu
authored andcommitted
dumbo: remove dumbo's dependency on mmds
This moves dumbo::ns to mmds crate and implements response retrieval callback passed to dumbo's tcp::handler Signed-off-by: moricho <[email protected]> Signed-off-by: YUAN LYU <[email protected]>
1 parent c5a3f9f commit 9830b66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/response.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl StatusCode {
5151
}
5252
}
5353

54+
#[derive(Debug, PartialEq)]
5455
struct StatusLine {
5556
http_version: Version,
5657
status_code: StatusCode,
@@ -77,6 +78,7 @@ impl StatusLine {
7778
/// Wrapper over the list of headers associated with a HTTP Response.
7879
/// When creating a ResponseHeaders object, the content type is initialized to `text/plain`.
7980
/// The content type can be updated with a call to `set_content_type`.
81+
#[derive(Debug, PartialEq)]
8082
pub struct ResponseHeaders {
8183
content_length: i32,
8284
content_type: MediaType,
@@ -164,6 +166,7 @@ impl ResponseHeaders {
164166
/// the body is initialized to `None` and the header is initialized with the `default` value. The body
165167
/// can be updated with a call to `set_body`. The header can be updated with `set_content_type` and
166168
/// `set_server`.
169+
#[derive(Debug, PartialEq)]
167170
pub struct Response {
168171
status_line: StatusLine,
169172
headers: ResponseHeaders,

0 commit comments

Comments
 (0)