mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
Remove uses of the deprecated buffers
function
Fix: 1607 Close: 1608 Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
Version 256:
|
||||
|
||||
* Remove uses of the deprecated `buffers` function
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 255:
|
||||
|
||||
* Add idle ping suspend test
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <boost/beast/core/async_base.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/buffers_range.hpp>
|
||||
#include <boost/beast/core/ostream.hpp>
|
||||
#include <boost/beast/core/make_printable.hpp>
|
||||
#include <boost/beast/core/stream_traits.hpp>
|
||||
#include <boost/asio/coroutine.hpp>
|
||||
#include <boost/asio/post.hpp>
|
||||
@ -903,7 +903,7 @@ operator<<(std::ostream& os,
|
||||
{
|
||||
typename Fields::writer fr{
|
||||
h, h.version(), h.method()};
|
||||
return os << buffers(fr.get());
|
||||
return os << beast::make_printable(fr.get());
|
||||
}
|
||||
|
||||
template<class Fields>
|
||||
@ -913,7 +913,7 @@ operator<<(std::ostream& os,
|
||||
{
|
||||
typename Fields::writer fr{
|
||||
h, h.version(), h.result_int()};
|
||||
return os << buffers(fr.get());
|
||||
return os << beast::make_printable(fr.get());
|
||||
}
|
||||
|
||||
template<bool isRequest, class Body, class Fields>
|
||||
|
@ -366,7 +366,7 @@ print_cxx14(message<isRequest, Body, Fields> const& m)
|
||||
[&sr](error_code& ec, auto const& buffer)
|
||||
{
|
||||
ec = {};
|
||||
std::cout << buffers(buffer);
|
||||
std::cout << make_printable(buffer);
|
||||
sr.consume(buffer_bytes(buffer));
|
||||
});
|
||||
}
|
||||
@ -393,7 +393,7 @@ struct lambda
|
||||
void operator()(error_code& ec, ConstBufferSequence const& buffer) const
|
||||
{
|
||||
ec = {};
|
||||
std::cout << buffers(buffer);
|
||||
std::cout << make_printable(buffer);
|
||||
sr.consume(buffer_bytes(buffer));
|
||||
}
|
||||
};
|
||||
@ -434,7 +434,7 @@ split_print_cxx14(message<isRequest, Body, Fields> const& m)
|
||||
[&sr](error_code& ec, auto const& buffer)
|
||||
{
|
||||
ec = {};
|
||||
std::cout << buffers(buffer);
|
||||
std::cout << make_printable(buffer);
|
||||
sr.consume(buffer_bytes(buffer));
|
||||
});
|
||||
}
|
||||
@ -448,7 +448,7 @@ split_print_cxx14(message<isRequest, Body, Fields> const& m)
|
||||
[&sr](error_code& ec, auto const& buffer)
|
||||
{
|
||||
ec = {};
|
||||
std::cout << buffers(buffer);
|
||||
std::cout << make_printable(buffer);
|
||||
sr.consume(buffer_bytes(buffer));
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user