mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
added response's helper method finish
This commit is contained in:
parent
b9c11b56f8
commit
ccb3f61d70
@ -372,6 +372,11 @@ impl HttpResponseBuilder {
|
|||||||
error: None,
|
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>
|
fn parts<'a>(parts: &'a mut Option<Parts>, err: &Option<HttpError>) -> Option<&'a mut Parts>
|
||||||
|
Loading…
Reference in New Issue
Block a user