forked from boostorg/beast
Rename to make_serializer
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user