mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
19 lines
407 B
C++
19 lines
407 B
C++
#ifndef HUSKY_IREQUESTHANDLER_HPP
|
|
#define HUSKY_IREQUESTHANDLER_HPP
|
|
|
|
#include "HttpReqInfo.hpp"
|
|
|
|
namespace Husky
|
|
{
|
|
class IRequestHandler
|
|
{
|
|
public:
|
|
virtual ~IRequestHandler(){};
|
|
public:
|
|
virtual bool do_GET(const HttpReqInfo& httpReq, string& res) const = 0;
|
|
virtual bool do_POST(const HttpReqInfo& httpReq, string& res) const = 0;
|
|
};
|
|
}
|
|
|
|
#endif
|