Add handler helpers

This commit is contained in:
Vinnie Falco committed 2017-01-07 16:07:02 -05:00
1 parent 114175cd1f
commit 851cb62a50
19 files changed
+208 -115

No files matched your search

+5 -5
View File
@@ -10,7 +10,7 @@
#include <beast/http/concepts.hpp>
#include <beast/core/bind_handler.hpp>
#include <beast/core/handler_alloc.hpp>
#include <beast/core/handler_helpers.hpp>
#include <beast/core/handler_ptr.hpp>
#include <beast/core/stream_concepts.hpp>
#include <boost/assert.hpp>
@@ -35,7 +35,7 @@ class parse_op
data(Handler& handler, Stream& s_,
DynamicBuffer& sb_, Parser& p_)
: cont(boost_asio_handler_cont_helpers::
: cont(beast_asio_helpers::
is_continuation(handler))
, s(s_)
, db(sb_)
@@ -68,7 +68,7 @@ public:
void* asio_handler_allocate(
std::size_t size, parse_op* op)
{
return boost_asio_handler_alloc_helpers::
return beast_asio_helpers::
allocate(size, op->d_.handler());
}
@@ -76,7 +76,7 @@ public:
void asio_handler_deallocate(
void* p, std::size_t size, parse_op* op)
{
return boost_asio_handler_alloc_helpers::
return beast_asio_helpers::
deallocate(p, size, op->d_.handler());
}
@@ -90,7 +90,7 @@ public:
friend
void asio_handler_invoke(Function&& f, parse_op* op)
{
return boost_asio_handler_invoke_helpers::
return beast_asio_helpers::
invoke(f, op->d_.handler());
}
};