#include <text.hpp>
Static Public Member Functions | |
| static std::string_view | mediaType () noexcept |
| template<typename T> requires requires(std::ostream& out, const T& value) { out << value; } | |
| static void | serialize (const T &value, std::ostream &out) |
| static void | deserialize (std::string &value, std::istream &input) |
text/plain codec: serializes values with stream injection operator, deserializes strings.
It is part of anch-codec (no format library needed) and always available.
anch::rest::Text in 0.2)
|
static |
Read the whole input
| value | the value to fill |
| input | the input stream |
|
staticnoexcept |
Media type
text/plain
|
static |
Write value
| value | the value |
| out | the output stream |