Rename to make_serializer

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:17 -07:00
parent 75b0571e83
commit d0d08e81f9
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ public:
req.body = "Hello, world!";
// send header
auto ws = make_write_stream(req);
auto ws = make_serializer(req);
for(;;)
{
ws.async_write_some(stream, yield);
@@ -162,7 +162,7 @@ public:
m.target("/");
m.fields.insert("User-Agent", "test");
m.fields.insert("Content-Length", s.size());
auto ws = make_write_stream(m);
auto ws = make_serializer(m);
error_code ec;
for(;;)
{
+3 -3
View File
@@ -765,7 +765,7 @@ public:
isRequest, Body, Fields> const& m, error_code& ec,
Decorator const& decorator = Decorator{})
{
auto ws = make_write_stream(m, decorator);
auto ws = make_serializer(m, decorator);
for(;;)
{
stream.nwrite = 0;
@@ -787,7 +787,7 @@ public:
error_code& ec, yield_context yield,
Decorator const& decorator = Decorator{})
{
auto ws = make_write_stream(m);
auto ws = make_serializer(m);
for(;;)
{
stream.nwrite = 0;
@@ -969,7 +969,7 @@ public:
m.body.first = boost::none;
m.body.second = true;
auto w = make_write_stream(m);
auto w = make_serializer(m);
// send the header first, so the
// other end gets it right away