$darkmode
cloe::handler::ToJson< T > Class Template Reference

#include <handler.hpp>

Public Member Functions

 ToJson (const T *ptr)
 
void operator() (const cloe::Request &, cloe::Response &r)
 

Detailed Description

template<typename T>
class cloe::handler::ToJson< T >

The ToJson handler tries to convert its input to JSON.

  • It requires a pointer as input, as it assumes that the data will change.
  • The type of the pointer must have the associated to_json function implemented. In other words, it must be directly convertible to a fable::Json.

The documentation for this class was generated from the following file: