mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +02:00
Fix operator<< for header
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 51
|
||||||
|
|
||||||
|
* Fix operator<< for header
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 50
|
Version 50
|
||||||
|
|
||||||
* parser is constructible from other body types
|
* parser is constructible from other body types
|
||||||
|
@@ -813,15 +813,25 @@ public:
|
|||||||
|
|
||||||
} // detail
|
} // detail
|
||||||
|
|
||||||
#if 0
|
template<class Fields>
|
||||||
template<bool isRequest, class Fields>
|
|
||||||
std::ostream&
|
std::ostream&
|
||||||
operator<<(std::ostream& os,
|
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>
|
template<bool isRequest, class Body, class Fields>
|
||||||
std::ostream&
|
std::ostream&
|
||||||
|
Reference in New Issue
Block a user