Closed atarola closed 7 years ago
Thanks for the PR! Perhaps this could be a method Request::status_code(&mut self, u32, &str) -> &mut Request like other methods? We could add some helper constructors or some helper methods to set common statuses like ok/not found perhaps.
Request::status_code(&mut self, u32, &str) -> &mut Request
Sounds like a good idea to me. I'll update the PR when I get a chance.
Thanks!
Thanks for the PR! Perhaps this could be a method
Request::status_code(&mut self, u32, &str) -> &mut Request
like other methods? We could add some helper constructors or some helper methods to set common statuses like ok/not found perhaps.