Add has_content_length_impl to Fields (API Change):

* The function has_content_length_impl is added to the
  requirements of Fields.

Actions Required:

* Implement has_content_length_impl for user-defined Fields
This commit is contained in:
Vinnie Falco committed 2017-10-25 17:58:45 -07:00
1 parent feb525f829
commit 6225c5bd2f
8 files changed
+69 -11

No files matched your search

+8
View File
@@ -938,6 +938,14 @@ get_keep_alive_impl(unsigned version) const
it->value()}.exists("close");
}
template<class Allocator>
bool
basic_fields<Allocator>::
has_content_length_impl() const
{
return count(field::content_length) > 0;
}
template<class Allocator>
inline
void