Crow  0.3
A C++ microframework for the web
returnable.h
1 #pragma once
2 
3 #include <string>
4 
5 namespace crow
6 {
7 /// An abstract class that allows any other class to be returned by a handler.
8 struct returnable
9 {
10  std::string content_type;
11  virtual std::string dump() const = 0;
12 
13  returnable(std::string ctype) : content_type {ctype}
14  {}
15 
16  virtual ~returnable(){};
17 };
18 }
crow::returnable
An abstract class that allows any other class to be returned by a handler.
Definition: returnable.h:8