Skip to content

Commit f1a92b8

Browse files
committed
rename http_proto
1 parent 06aa97c commit f1a92b8

3 files changed

Lines changed: 29 additions & 29 deletions

File tree

include/boost/beast2/body_write_stream.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define BOOST_BEAST2_BODY_WRITE_STREAM_HPP
1212

1313
#include <boost/asio/async_result.hpp>
14-
#include <boost/http_proto/serializer.hpp>
14+
#include <boost/http/serializer.hpp>
1515
#include <boost/system/error_code.hpp>
1616

1717
#include <utility>
@@ -59,7 +59,7 @@ class body_write_stream_close_op;
5959
serializer, preventing data loss or duplication.
6060
6161
@see
62-
@ref http_proto::serializer.
62+
@ref http::serializer.
6363
*/
6464
template<class AsyncWriteStream>
6565
class body_write_stream
@@ -98,20 +98,20 @@ class body_write_stream
9898
This object's executor is initialized to that of the
9999
underlying stream.
100100
101-
@param sr A http_proto::serializer object which will perform the serialization of
101+
@param sr A http::serializer object which will perform the serialization of
102102
the HTTP message and extraction of the body. This must be
103103
initialized by the caller and ownership of the serializer is
104104
retained by the caller, which must guarantee that it remains
105105
valid until the handler is called.
106106
107-
@param srs A http_proto::serializer::stream object which must have been
107+
@param srs A http::serializer::stream object which must have been
108108
obtained by a call to `start_stream` on `sr`. Ownership of
109109
the serializer::stream is transferred to this object.
110110
*/
111111
explicit body_write_stream(
112112
AsyncWriteStream& s,
113-
http_proto::serializer& sr,
114-
http_proto::serializer::stream srs);
113+
http::serializer& sr,
114+
http::serializer::stream srs);
115115

116116
/** Write some data asynchronously.
117117
@@ -254,8 +254,8 @@ class body_write_stream
254254
friend class detail::body_write_stream_close_op;
255255

256256
AsyncWriteStream& stream_;
257-
http_proto::serializer& sr_;
258-
http_proto::serializer::stream srs_;
257+
http::serializer& sr_;
258+
http::serializer::stream srs_;
259259
system::error_code ec_;
260260
};
261261

include/boost/beast2/impl/body_write_stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ template<class AsyncWriteStream>
181181
body_write_stream<AsyncWriteStream>::
182182
body_write_stream(
183183
AsyncWriteStream& s,
184-
http_proto::serializer& sr,
185-
http_proto::serializer::stream srs)
184+
http::serializer& sr,
185+
http::serializer::stream srs)
186186
: stream_(s)
187187
, sr_(sr)
188188
, srs_(std::move(srs))

test/unit/body_write_stream.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
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>
663663
do_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

Comments
 (0)