forked from boostorg/beast
Use field in basic_fields and call sites
This commit is contained in:
@@ -300,6 +300,14 @@ clear() noexcept
|
||||
list_.clear();
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
std::size_t
|
||||
basic_fields<Allocator>::
|
||||
erase(field f)
|
||||
{
|
||||
return erase(to_string(f));
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
std::size_t
|
||||
basic_fields<Allocator>::
|
||||
@@ -323,6 +331,14 @@ erase(string_view name)
|
||||
return n;
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
void
|
||||
basic_fields<Allocator>::
|
||||
insert(field f, string_view value)
|
||||
{
|
||||
insert(to_string(f), value);
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
void
|
||||
basic_fields<Allocator>::
|
||||
|
||||
@@ -103,6 +103,14 @@ size() const
|
||||
Body, decltype(*this)>{});
|
||||
}
|
||||
|
||||
template<bool isRequest, class Body, class Fields>
|
||||
void
|
||||
message<isRequest, Body, Fields>::
|
||||
content_length(std::uint64_t n)
|
||||
{
|
||||
this->content_length_impl(n);
|
||||
}
|
||||
|
||||
template<bool isRequest, class Body, class Fields>
|
||||
template<class... Args>
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user