This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
repoviewer/crow/returnable.h
2026-01-21 04:06:54 +09:00

20 lines
383 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() const = 0;
returnable(std::string ctype):
content_type{ctype}
{}
virtual ~returnable(){};
};
} // namespace crow