TarsCloud_TarsCpp/servant/script/http_demo/DemoServantImp.h
2018-09-05 11:26:21 +08:00

38 lines
539 B
C++

#ifndef _DemoServantImp_H_
#define _DemoServantImp_H_
#include "servant/Application.h"
/**
*
*
*/
class DemoServantImp : public Servant
{
public:
/**
*
*/
virtual ~DemoServantImp() {}
/**
*
*/
virtual void initialize();
/**
*
*/
virtual void destroy();
/**
*
*/
int doRequest(TarsCurrentPtr current, vector<char> &buffer);
private:
int doRequest(const TC_HttpRequest &req, TC_HttpResponse &rsp);
};
/////////////////////////////////////////////////////
#endif