Skip to content

Commit 3e6f7e6

Browse files
committed
burl: Update for Buffers
1 parent 49569e3 commit 3e6f7e6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

example/client/burl/any_stream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <boost/asio/coroutine.hpp>
1717
#include <boost/asio/immediate.hpp>
1818
#include <boost/asio/steady_timer.hpp>
19-
#include <boost/buffers/algorithm.hpp>
19+
#include <boost/buffers/prefix.hpp>
2020
#include <boost/http_proto/parser.hpp>
2121
#include <boost/http_proto/serializer.hpp>
2222

example/client/burl/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ can_reuse_connection(
127127
}
128128

129129
bool
130-
ignorebody(
130+
should_ignore_body(
131131
const operation_config& oc,
132132
http_proto::response_view response) noexcept
133133
{
@@ -604,7 +604,7 @@ perform_request(
604604
"HTTP server doesn't seem to support byte ranges. Cannot resume.");
605605
}
606606

607-
if(!ignorebody(oc, parser.get()))
607+
if(!should_ignore_body(oc, parser.get()))
608608
{
609609
auto pm = progress_meter{ body_size(parser.get()) };
610610
parser.set_body<sink>(&pm, &output, oc.terminal_binary_ok);
@@ -801,7 +801,7 @@ co_main(int argc, char* argv[])
801801
executor,
802802
retry(oc, std::move(request_task)),
803803
co_await task_group.async_adapt(
804-
[&](auto ep)
804+
[&](std::exception_ptr ep)
805805
{
806806
if(ep && oc.failearly)
807807
{
@@ -850,7 +850,7 @@ main(int argc, char* argv[])
850850
asio::experimental::wait_for_one{},
851851
asio::bind_executor(
852852
ioc,
853-
[](auto, auto, auto, auto ep)
853+
[](auto, auto, auto, std::exception_ptr ep)
854854
{
855855
if(ep)
856856
std::rethrow_exception(ep);

example/client/burl/multipart_form.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include "multipart_form.hpp"
1111

12-
#include <boost/buffers/algorithm.hpp>
13-
#include <boost/buffers/buffer_copy.hpp>
12+
#include <boost/buffers/copy.hpp>
13+
#include <boost/buffers/prefix.hpp>
1414
#include <boost/http_proto/file.hpp>
1515
#include <boost/system/system_error.hpp>
1616

@@ -153,7 +153,7 @@ multipart_form::source::on_read(buffers::mutable_buffer mb)
153153

154154
auto copy = [&](core::string_view sv)
155155
{
156-
auto copied = buffers::buffer_copy(
156+
auto copied = buffers::copy(
157157
mb,
158158
buffers::sans_prefix(
159159
buffers::const_buffer{ sv.data(), sv.size() },

0 commit comments

Comments
 (0)