mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Fix operator<< for header
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Version 51
|
||||
|
||||
* Fix operator<< for header
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 50
|
||||
|
||||
* parser is constructible from other body types
|
||||
|
@@ -813,15 +813,25 @@ public:
|
||||
|
||||
} // detail
|
||||
|
||||
#if 0
|
||||
template<bool isRequest, class Fields>
|
||||
template<class Fields>
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os,
|
||||
header<isRequest, Fields> const& msg)
|
||||
header<true, Fields> const& h)
|
||||
{
|
||||
// VFALCO TODO
|
||||
typename Fields::reader fr{
|
||||
h, h.version, h.method()};
|
||||
return os << buffers(fr.get());
|
||||
}
|
||||
|
||||
template<class Fields>
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os,
|
||||
header<false, Fields> const& h)
|
||||
{
|
||||
typename Fields::reader fr{
|
||||
h, h.version, h.result_int()};
|
||||
return os << buffers(fr.get());
|
||||
}
|
||||
#endif
|
||||
|
||||
template<bool isRequest, class Body, class Fields>
|
||||
std::ostream&
|
||||
|
Reference in New Issue
Block a user