mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
38 lines
539 B
C++
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
|