Skip to content

Commit 8f4b23d

Browse files
committed
buffer_param usage
1 parent ff61671 commit 8f4b23d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/boost/http/server/route_handler.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <boost/http/detail/config.hpp>
1414
#include <boost/http/server/router_types.hpp>
15-
#include <boost/capy/any_bufref.hpp>
15+
#include <boost/capy/buffers/buffer_param.hpp>
1616
#include <boost/capy/buffers.hpp>
1717
#include <boost/capy/datastore.hpp>
1818
#include <boost/capy/task.hpp>
@@ -242,7 +242,7 @@ struct BOOST_HTTP_SYMBOL_VISIBLE
242242
route_task
243243
write(Buffers const& buffers)
244244
{
245-
return write_impl(capy::any_bufref(buffers));
245+
return write_impl(capy::buffer_param(buffers));
246246
}
247247

248248
/** Complete a streaming response.
@@ -284,7 +284,7 @@ struct BOOST_HTTP_SYMBOL_VISIBLE
284284
285285
@return A task that completes when the write is done.
286286
*/
287-
virtual route_task write_impl(capy::any_bufref buffers) = 0;
287+
virtual route_task write_impl(capy::buffer_param buffers) = 0;
288288
};
289289

290290
} // http

test/unit/server/test_route_handler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct test_route_params : route_params
2424
co_return {};
2525
}
2626

27-
route_task write_impl(capy::any_bufref) override
27+
route_task write_impl(capy::buffer_param) override
2828
{
2929
co_return {};
3030
}

0 commit comments

Comments
 (0)