We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This method would be a guaranteed single write, so we could set the Content-Length header, write the body, and then end() the request.
Content-Length
end()
Basically:
impl Response<Fresh> { fn send(self, buf: &[u8]) -> io::Result<usize> { self.headers.set(ContentLength(buf.len())); try!(self.body.write_all(buf)); self.end(); Ok(buf.len()) } }
The text was updated successfully, but these errors were encountered:
feat(server): add Response.send to write a sized body
d5558b6
Closes #446
Successfully merging a pull request may close this issue.
This method would be a guaranteed single write, so we could set the
Content-Length
header, write the body, and thenend()
the request.Basically:
The text was updated successfully, but these errors were encountered: