This commit is contained in:
Martin Algesten
2018-06-10 21:21:07 +02:00
parent 4d80a9ba3c
commit 7d366c1055
2 changed files with 14 additions and 2 deletions

View File

@@ -12,8 +12,6 @@ use error::Error;
const DEFAULT_CONTENT_TYPE: &'static str = "text/plain";
const DEFAULT_CHARACTER_SET: &'static str = "utf-8";
// buffered
// "text/", "/json", or "x-www-form-urlencoded"
pub struct Response {
status_line: AsciiString,
index: (usize, usize), // index into status_line where we split: HTTP/1.1 200 OK