# Crow: include/crow/returnable.h Source File

returnable.h
#pragma once
#include <string>
namespace crow
{
/// An abstract class that allows any other class to be returned by a handler.
struct returnable
{
std::string content_type;
virtual std::string dump() const = 0;
returnable(std::string ctype):
content_type{ctype}
{}
virtual ~returnable(){};
};
} // namespace crow
crow
The main namespace of the library. In this namespace is defined the most important classes and functi...
crow::returnable
An abstract class that allows any other class to be returned by a handler.
Definition: returnable.h:9