Update stream write documentation for end of stream changes

This commit is contained in:
Vinnie Falco committed 2017-10-23 18:36:01 -07:00
1 parent 4337804f5d
commit 1faac0b0fb
3 files changed
+3 -10

No files matched your search

+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