Skip to content

Commit dfe3e83

Browse files
committed
container hierarchy is refactored
1 parent 0e85b91 commit dfe3e83

55 files changed

Lines changed: 1699 additions & 4798 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/boost/http_proto.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,21 @@
1414
#include <boost/http_proto/field.hpp>
1515
#include <boost/http_proto/fields.hpp>
1616
#include <boost/http_proto/fields_base.hpp>
17-
#include <boost/http_proto/fields_view.hpp>
18-
#include <boost/http_proto/fields_view_base.hpp>
1917
#include <boost/http_proto/file.hpp>
2018
#include <boost/http_proto/file_mode.hpp>
2119
#include <boost/http_proto/file_sink.hpp>
2220
#include <boost/http_proto/file_source.hpp>
2321
#include <boost/http_proto/header_limits.hpp>
2422
#include <boost/http_proto/message_base.hpp>
25-
#include <boost/http_proto/message_view_base.hpp>
2623
#include <boost/http_proto/method.hpp>
2724
#include <boost/http_proto/parser.hpp>
2825
#include <boost/http_proto/request.hpp>
2926
#include <boost/http_proto/request_parser.hpp>
30-
#include <boost/http_proto/request_view.hpp>
3127
#include <boost/http_proto/response.hpp>
3228
#include <boost/http_proto/response_parser.hpp>
33-
#include <boost/http_proto/response_view.hpp>
3429
#include <boost/http_proto/serializer.hpp>
3530
#include <boost/http_proto/sink.hpp>
3631
#include <boost/http_proto/source.hpp>
37-
#include <boost/http_proto/static_fields.hpp>
3832
#include <boost/http_proto/static_request.hpp>
3933
#include <boost/http_proto/static_response.hpp>
4034
#include <boost/http_proto/status.hpp>

include/boost/http_proto/fields.hpp

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#include <boost/http_proto/detail/config.hpp>
1616
#include <boost/http_proto/fields_base.hpp>
17-
#include <boost/http_proto/fields_view.hpp>
1817
#include <boost/core/detail/string_view.hpp>
1918

2019
namespace boost {
@@ -196,28 +195,6 @@ class fields final
196195
BOOST_HTTP_PROTO_DECL
197196
fields(fields const& f);
198197

199-
/** Constructor.
200-
201-
The newly constructed object contains
202-
a copy of `f`.
203-
204-
@par Postconditions
205-
@code
206-
this->buffer() == f.buffer() && this->buffer().data() != f.buffer().data()
207-
@endcode
208-
209-
@par Complexity
210-
Linear in `f.size()`.
211-
212-
@par Exception Safety
213-
Strong guarantee.
214-
Calls to allocate may throw.
215-
216-
@param f The fields to copy.
217-
*/
218-
BOOST_HTTP_PROTO_DECL
219-
fields(fields_view const& f);
220-
221198
/** Assignment.
222199
223200
The contents of `f` are transferred to
@@ -272,55 +249,10 @@ class fields final
272249
fields&
273250
operator=(fields const& f) noexcept
274251
{
275-
copy_impl(*f.ph_);
276-
return *this;
277-
}
278-
279-
/** Assignment.
280-
281-
The contents of `f` are copied and
282-
the previous contents of `this` are
283-
discarded.
284-
285-
@par Postconditions
286-
@code
287-
this->buffer() == f.buffer() && this->buffer().data() != f.buffer().data()
288-
@endcode
289-
290-
@par Complexity
291-
Linear in `r.size()`.
292-
293-
@par Exception Safety
294-
Strong guarantee.
295-
Calls to allocate may throw.
296-
Exception thrown if max capacity exceeded.
297-
298-
@throw std::length_error
299-
Max capacity would be exceeded.
300-
301-
@return A reference to this object.
302-
303-
@param f The fields to copy.
304-
*/
305-
fields&
306-
operator=(fields_view const& f)
307-
{
308-
copy_impl(*f.ph_);
252+
copy_impl(f.h_);
309253
return *this;
310254
}
311255

312-
/** Conversion.
313-
314-
@see
315-
@ref fields_view.
316-
317-
@return A view of the fields.
318-
*/
319-
operator fields_view() const noexcept
320-
{
321-
return fields_view(ph_);
322-
}
323-
324256
//--------------------------------------------
325257

326258
/** Swap.

0 commit comments

Comments
 (0)