acl/lib_fiber/samples/https_client/https_request.h

24 lines
440 B
C
Raw Normal View History

2017-09-22 12:27:21 +08:00
#pragma once
class https_request
{
public:
https_request(const char* addr, acl::polarssl_conf* ssl_conf);
~https_request(void);
void* run(void);
private:
acl::http_request request_;
acl::string to_charset_;
// 处理 text/plain 类型数据
bool do_plain(acl::http_request& req);
// 处理 text/xml 类型数据
bool do_xml(acl::http_request& req);
// 处理 text/json 类型数据
bool do_json(acl::http_request& req);
};