#include <thrift.hpp>
Static Public Member Functions | |
| static std::string_view | mediaType () noexcept |
| template<anch::codec::ThriftStruct T> | |
| static void | serialize (const T &value, std::ostream &out) |
| template<anch::codec::ThriftStruct T> | |
| static void | deserialize (T &value, std::istream &input, anch::codec::Side side) |
Thrift codec for structures generated by thrift –gen cpp , with a protocol: use ThriftBinary , ThriftCompact or ThriftJson . Invalid structures raise std::invalid_argument ( 400 on server side).
| P | the protocol |
|
static |
Read structure (body size is bounded by maxBodySize )
| value | the structure to fill |
| input | the input stream |
| side | the side |
| std::invalid_argument | when structure is invalid |
| ContentTooLarge | when body is larger than maxBodySize |
|
staticnoexcept |
Media type
|
static |
Write structure
| value | the structure |
| out | the output stream |