mirror of
https://github.com/actix/actix-web.git
synced 2024-11-18 15:41:17 +00:00
added response's helper method finish
This commit is contained in:
parent
b9c11b56f8
commit
ccb3f61d70
1 changed files with 5 additions and 0 deletions
|
@ -372,6 +372,11 @@ impl HttpResponseBuilder {
|
|||
error: None,
|
||||
})
|
||||
}
|
||||
|
||||
/// Set an empty body
|
||||
pub fn finish(&mut self) -> Result<HttpResponse, HttpError> {
|
||||
self.body(Body::Empty)
|
||||
}
|
||||
}
|
||||
|
||||
fn parts<'a>(parts: &'a mut Option<Parts>, err: &Option<HttpError>) -> Option<&'a mut Parts>
|
||||
|
|
Loading…
Reference in a new issue