forked from boostorg/beast
@@ -396,12 +396,9 @@ field
|
||||
string_to_field(string_view s);
|
||||
|
||||
/// Write the text for a field name to an output stream.
|
||||
inline
|
||||
BOOST_BEAST_DECL
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os, field f)
|
||||
{
|
||||
return os << to_string(f);
|
||||
}
|
||||
operator<<(std::ostream& os, field f);
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
#define BOOST_BEAST_HTTP_IMPL_FIELD_IPP
|
||||
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
#include <boost/assert.hpp>
|
||||
#include <ostream>
|
||||
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
@@ -565,6 +567,12 @@ string_to_field(string_view s)
|
||||
return detail::get_field_table().string_to_field(s);
|
||||
}
|
||||
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os, field f)
|
||||
{
|
||||
return os << to_string(f);
|
||||
}
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
Reference in New Issue
Block a user