message::body is a member function (API Change):

fix #778

* The body data member is replaced with accessor
  member functions.

Actions Required:

* Call member function message::body instead of accessing
  the data member at call sites.
This commit is contained in:
Vinnie Falco
2017-09-12 17:12:12 -07:00
parent 0d4d239d05
commit 54fe7cacf7
36 changed files with 248 additions and 182 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ void fxx() {
res.version = 11; // HTTP/1.1
res.result(status::ok);
res.set(field::server, "Beast");
res.body = "Hello, world!";
res.body() = "Hello, world!";
res.prepare_payload();
//]
@@ -115,7 +115,7 @@ void fxx() {
res.version = 11;
res.result(status::ok);
res.set(field::server, "Beast");
res.body = "Hello, world!";
res.body() = "Hello, world!";
error_code ec;
write(sock, res, ec);