Start working on server

This commit is contained in:
Carl Lerche
2017-06-30 14:35:03 -07:00
parent 7f21954724
commit cb5130e3c6
9 changed files with 365 additions and 23 deletions

View File

@@ -265,6 +265,16 @@ impl Pseudo {
}
}
pub fn response(status: StatusCode) -> Self {
Pseudo {
method: None,
scheme: None,
authority: None,
path: None,
status: Some(status),
}
}
pub fn set_scheme(&mut self, scheme: ByteStr) {
self.scheme = Some(scheme);
}