File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 14
14
#include < boost/http_proto/request_parser.hpp>
15
15
#include < boost/http_proto/response_parser.hpp>
16
16
#include < boost/http_proto/service/zlib_service.hpp>
17
- #include < boost/buffers/buffer.hpp>
18
17
#include < boost/buffers/buffer_copy.hpp>
19
18
#include < boost/buffers/buffer_size.hpp>
20
19
#include < boost/buffers/flat_buffer.hpp>
20
+ #include < boost/buffers/make_buffer.hpp>
21
21
#include < boost/buffers/string_buffer.hpp>
22
22
#include < boost/core/ignore_unused.hpp>
23
23
#include < vector>
@@ -238,7 +238,7 @@ struct parser_test
238
238
auto const n =
239
239
buffers::buffer_copy (
240
240
pr.prepare (),
241
- buffers::buffer (
241
+ buffers::make_buffer (
242
242
s.data (), s.size ()));
243
243
pr.commit (n);
244
244
s.remove_prefix (n);
@@ -304,7 +304,7 @@ struct parser_test
304
304
auto const n =
305
305
buffers::buffer_copy (
306
306
pr.prepare (),
307
- buffers::buffer (
307
+ buffers::make_buffer (
308
308
s.data (), s.size ()));
309
309
pr.commit (n);
310
310
BOOST_TEST_EQ (n, s.size ());
Original file line number Diff line number Diff line change 12
12
13
13
#include < boost/http_proto/response.hpp>
14
14
#include < boost/http_proto/string_body.hpp>
15
- #include < boost/buffers/buffer.hpp>
16
15
#include < boost/buffers/buffer_copy.hpp>
17
16
#include < boost/buffers/buffer_size.hpp>
18
17
#include < boost/buffers/const_buffer.hpp>
18
+ #include < boost/buffers/make_buffer.hpp>
19
19
#include < boost/buffers/mutable_buffer.hpp>
20
20
#include < boost/core/ignore_unused.hpp>
21
21
#include " test_helpers.hpp"
@@ -47,7 +47,7 @@ struct serializer_test
47
47
rv.bytes =
48
48
buffers::buffer_copy (
49
49
b,
50
- buffers::buffer (
50
+ buffers::make_buffer (
51
51
s_.data (),
52
52
s_.size ()));
53
53
s_ = s_.substr (rv.bytes );
@@ -337,7 +337,7 @@ struct serializer_test
337
337
" \r\n " ,
338
338
test_source{std::string (2048 , ' *' )},
339
339
[](core::string_view s){
340
- core::string_view expected_header =
340
+ core::string_view expected_header =
341
341
" HTTP/1.1 200 OK\r\n "
342
342
" Server: test\r\n "
343
343
" Transfer-Encoding: chunked\r\n "
@@ -355,7 +355,7 @@ struct serializer_test
355
355
" \r\n " ,
356
356
test_source{" " },
357
357
[](core::string_view s){
358
- core::string_view expected_header =
358
+ core::string_view expected_header =
359
359
" HTTP/1.1 200 OK\r\n "
360
360
" Server: test\r\n "
361
361
" Transfer-Encoding: chunked\r\n "
Original file line number Diff line number Diff line change 13
13
#include < boost/http_proto/fields.hpp>
14
14
#include < boost/http_proto/request.hpp>
15
15
#include < boost/http_proto/response.hpp>
16
- #include < boost/buffers/buffer.hpp>
17
16
#include < boost/buffers/buffer_copy.hpp>
18
17
#include < boost/buffers/buffer_size.hpp>
18
+ #include < boost/buffers/make_buffer.hpp>
19
19
#include < boost/url/grammar/parse.hpp>
20
20
#include < boost/core/detail/string_view.hpp>
21
21
@@ -43,7 +43,7 @@ test_to_string(Buffers const& bs)
43
43
std::string s (
44
44
buffers::buffer_size (bs), 0 );
45
45
s.resize (buffers::buffer_copy (
46
- buffers::buffer (&s[0 ], s.size ()),
46
+ buffers::make_buffer (&s[0 ], s.size ()),
47
47
bs));
48
48
return s;
49
49
}
You can’t perform that action at this time.
0 commit comments