⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpresponse.h

📁 监听分析流量中的http流量
💻 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 + -