Crow/include/crow/returnable.h

19 lines
321 B
C
Raw Normal View History

#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;
2021-05-18 16:10:39 +00:00
virtual std::string dump() const = 0;
returnable(std::string ctype) : content_type {ctype}
{}
virtual ~returnable(){};
};
}