Update stream write documentation for end of stream changes

This commit is contained in:
Vinnie Falco
2017-10-23 18:36:01 -07:00
parent 4337804f5d
commit 1faac0b0fb
3 changed files with 3 additions and 10 deletions
+1 -2
View File
@@ -116,11 +116,10 @@ void fxx() {
res.result(status::ok);
res.set(field::server, "Beast");
res.body() = "Hello, world!";
res.prepare_payload();
error_code ec;
write(sock, res, ec);
if(ec == error::end_of_stream)
sock.close();
//]
//[http_snippet_8