Server API rework.

This commit is contained in:
Chunting Gu
2019-06-26 17:34:39 +08:00
parent a65294aeec
commit a3cab444dc
20 changed files with 341 additions and 384 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef WEBCC_VIEW_H_
#define WEBCC_VIEW_H_
#include <memory>
#include "webcc/request.h"
#include "webcc/response.h"
namespace webcc {
class View {
public:
virtual ~View() = default;
virtual ResponsePtr Handle(RequestPtr request) = 0;
};
using ViewPtr = std::shared_ptr<View>;
} // namespace webcc
#endif // WEBCC_VIEW_H_