Fields::writer replaces Fields::reader (API Change):

* Fields::writer replaces Fields::reader
* The FieldsWriter concept is renamed from FieldsReader

Actions Required:

* Rename reader to writer for user defined Fields
This commit is contained in:
Vinnie Falco committed 2017-10-30 17:53:59 -07:00
1 parent 14653be0cc
commit 101023553e
14 files changed
+70 -54

No files matched your search

+11 -11
View File
@@ -34,7 +34,7 @@ namespace beast {
namespace http {
template<class Allocator>
class basic_fields<Allocator>::reader
class basic_fields<Allocator>::writer
{
public:
using iter_type = typename list_t::const_iterator;
@@ -157,13 +157,13 @@ public:
using const_buffers_type =
beast::detail::buffers_ref<view_type>;
reader(basic_fields const& f,
writer(basic_fields const& f,
unsigned version, verb v);
reader(basic_fields const& f,
writer(basic_fields const& f,
unsigned version, unsigned code);
reader(basic_fields const& f);
writer(basic_fields const& f);
const_buffers_type
get() const
@@ -173,8 +173,8 @@ public:
};
template<class Allocator>
basic_fields<Allocator>::reader::
reader(basic_fields const& f)
basic_fields<Allocator>::writer::
writer(basic_fields const& f)
: f_(f)
{
view_.emplace(
@@ -186,8 +186,8 @@ reader(basic_fields const& f)
}
template<class Allocator>
basic_fields<Allocator>::reader::
reader(basic_fields const& f,
basic_fields<Allocator>::writer::
writer(basic_fields const& f,
unsigned version, verb v)
: f_(f)
{
@@ -228,8 +228,8 @@ reader(basic_fields const& f,
}
template<class Allocator>
basic_fields<Allocator>::reader::
reader(basic_fields const& f,
basic_fields<Allocator>::writer::
writer(basic_fields const& f,
unsigned version, unsigned code)
: f_(f)
{
@@ -1230,7 +1230,7 @@ realloc_target(
{
// The target string are stored with an
// extra space at the beginning to help
// the reader class.
// the writer class.
if(dest.empty() && s.empty())
return;
auto a = typename beast::detail::allocator_traits<