2020#include < boost/capy/async_op.hpp>
2121#include < boost/capy/polystore.hpp>
2222#include < boost/capy/task.hpp>
23- #include < boost/http_proto /response.hpp>
24- #include < boost/http_proto /request.hpp>
23+ #include < boost/http /response.hpp>
24+ #include < boost/http /request.hpp>
2525
2626#include " test_helpers.hpp"
2727#include < boost/beast2/test/stream.hpp>
@@ -121,8 +121,8 @@ struct ctx_base
121121
122122 ctx_base ()
123123 {
124- http_proto ::install_parser_service (capy_ctx_, {});
125- http_proto ::install_serializer_service (capy_ctx_, {});
124+ http ::install_parser_service (capy_ctx_, {});
125+ http ::install_serializer_service (capy_ctx_, {});
126126 }
127127};
128128
@@ -144,7 +144,7 @@ struct single_tester : public ctx_base
144144 boost::asio::io_context ioc_;
145145
146146 test::stream ts_;
147- http_proto ::response_parser pr_;
147+ http ::response_parser pr_;
148148
149149 // Create a destination buffer
150150 std::string s_;
@@ -155,9 +155,9 @@ struct single_tester : public ctx_base
155155
156156 test::stream wts_, rts_;
157157
158- http_proto ::serializer sr_;
158+ http ::serializer sr_;
159159
160- http_proto ::response res_;
160+ http ::response res_;
161161
162162 std::size_t srs_capacity_;
163163
@@ -463,9 +463,9 @@ struct single_tester : public ctx_base
463463 wts.connect (rts);
464464
465465 // Create a fresh serializer for this test
466- http_proto ::serializer sr (capy_ctx_);
466+ http ::serializer sr (capy_ctx_);
467467 sr.reset ();
468- http_proto ::response res (header_);
468+ http ::response res (header_);
469469
470470 // Create a new body_write_stream with the failing stream
471471 body_write_stream<test::stream> bws (wts, sr, sr.start_stream (res));
@@ -503,9 +503,9 @@ struct single_tester : public ctx_base
503503 wts.connect (rts);
504504
505505 // Create a fresh serializer for this test
506- http_proto ::serializer sr (capy_ctx_);
506+ http ::serializer sr (capy_ctx_);
507507 sr.reset ();
508- http_proto ::response res (header_);
508+ http ::response res (header_);
509509
510510 // Create a new body_write_stream with the failing stream
511511 body_write_stream<test::stream> bws (wts, sr, sr.start_stream (res));
@@ -546,9 +546,9 @@ struct single_tester : public ctx_base
546546 wts.write_size (1 );
547547
548548 // Create a fresh serializer for this test
549- http_proto ::serializer sr (capy_ctx_);
549+ http ::serializer sr (capy_ctx_);
550550 sr.reset ();
551- http_proto ::response res (header_);
551+ http ::response res (header_);
552552
553553 // Create a new body_write_stream with the failing stream
554554 body_write_stream<test::stream> bws (wts, sr, sr.start_stream (res));
@@ -663,8 +663,8 @@ capy::task<void>
663663do_coro_write (
664664 test::stream& wts,
665665 test::stream& rts,
666- http_proto ::serializer& sr,
667- http_proto ::serializer::stream srs,
666+ http ::serializer& sr,
667+ http ::serializer::stream srs,
668668 std::string const & body,
669669 std::string const & expected_msg)
670670{
@@ -701,8 +701,8 @@ test_coroutine()
701701{
702702 // Set up context with parser and serializer services
703703 capy::polystore capy_ctx;
704- http_proto ::install_parser_service (capy_ctx, {});
705- http_proto ::install_serializer_service (capy_ctx, {});
704+ http ::install_parser_service (capy_ctx, {});
705+ http ::install_serializer_service (capy_ctx, {});
706706
707707 std::string body = " Hello World!" ;
708708 std::string header =
@@ -717,10 +717,10 @@ test_coroutine()
717717 test::stream rts (ioc);
718718 wts.connect (rts);
719719
720- http_proto ::serializer sr (capy_ctx);
720+ http ::serializer sr (capy_ctx);
721721 sr.reset ();
722722
723- http_proto ::response res (header);
723+ http ::response res (header);
724724 auto srs = sr.start_stream (res);
725725
726726 capy::spawn (
0 commit comments