mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
17 lines
285 B
C
17 lines
285 B
C
|
#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() = 0;
|
||
|
|
||
|
returnable(std::string ctype) : content_type {ctype}
|
||
|
{}
|
||
|
};
|
||
|
}
|