?? httpresponse.h
字號:
#ifndef HttpResponseH
#define HttpResponseH
#ifdef HTTP_EXPORTS
#define HTTP_API __declspec(dllexport)
#else
#define HTTP_API
#endif
#include <string>
using std::string;
class HttpCoder;
class HttpData;
class HttpEntity;
class HTTP_API HttpResponse
{
friend class HttpEntity;
public:
static HttpResponse * CreateResponse();
HttpEntity * GetHttpEntity();
virtual ~HttpResponse();
private:
HttpResponse();
public:
//解析HTTP回應
int DecodeMessage(const string& message);
string GetVer();
string GetRcode();
string GetReason();
string GetContent();
string GetAccept_Ranges();
string GetAge();
string GetLocation();
string GetProxy_Authenticate();
string GetRetry_After();
string GetServer();
string GetVary();
string GetWWW_Authenticate();
//創建HTTP回應
string CreateMessage(const string& ver,const string& rcode,const string& reason);
void CreateContent(const string& value);
void CreateAccept_Ranges(const string& value);
void CreateAge(const string& value);
void CreateLocation(const string& value);
void CreateProxy_Authenticate(const string& value);
void CreateRetry_After(const string& value);
void CreateServer(const string& value);
void CreateVary(const string& value);
void CreateWWW_Authenticate(const string& value);
private:
HttpCoder *coder_;
HttpData *data_;
HttpEntity * entity_;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -