cppjieba/server/husky/IRequestHandler.hpp
2015-08-08 12:30:14 +08:00

18 lines
332 B
C++

#ifndef HUSKY_IREQUESTHANDLER_HPP
#define HUSKY_IREQUESTHANDLER_HPP
#include "HttpReqInfo.hpp"
namespace husky {
class IRequestHandler {
public:
virtual ~IRequestHandler() {
}
virtual bool doGET(const HttpReqInfo& httpReq, string& res) = 0;
virtual bool doPOST(const HttpReqInfo& httpReq, string& res) = 0;
};
}
#endif