diff --git a/src/httpresponse.rs b/src/httpresponse.rs index dbb82ffe..6dc7ab7d 100644 --- a/src/httpresponse.rs +++ b/src/httpresponse.rs @@ -372,6 +372,11 @@ impl HttpResponseBuilder { error: None, }) } + + /// Set an empty body + pub fn finish(&mut self) -> Result { + self.body(Body::Empty) + } } fn parts<'a>(parts: &'a mut Option, err: &Option) -> Option<&'a mut Parts>