You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
336 B
C
23 lines
336 B
C
![]()
6 years ago
|
#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_
|