mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-24 17:47:36 +02:00
added response's helper method finish
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user