forked from boostorg/beast
Fix operator<< for header
This commit is contained in:
1 parent
98157f392e
commit
0a5fec1e9d
2 files changed
+21
-5
No files matched your search
@@ -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