Closed jhoekx closed 6 years ago
I wanted to return status code 204 No Content. There are helpers for empty errors, but not for OK responses. This adds a helper for 204.
204 No Content
I noticed that people are using ugly workarounds like:
Response::empty_404().with_status_code(204).without_header("Content-Length")
(from https://github.com/tomaka/rouille/issues/150 )
If you want I would be willing to refactor the different empty_* functions to use a common private function.
empty_*
Thanks!
That's not necessary I think.
I wanted to return status code
204 No Content
. There are helpers for empty errors, but not for OK responses. This adds a helper for 204.I noticed that people are using ugly workarounds like:
(from https://github.com/tomaka/rouille/issues/150 )
If you want I would be willing to refactor the different
empty_*
functions to use a common private function.