added crow

This commit is contained in:
2025-12-14 21:34:10 +01:00
parent 8df3c5479b
commit 6f1d51cabc
39 changed files with 15400 additions and 0 deletions

19
include/crow/returnable.h Normal file
View File

@@ -0,0 +1,19 @@
#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