acl/lib_acl_cpp/samples/ssl/https_client/https_request.h

26 lines
506 B
C
Raw Normal View History

#pragma once
2015-12-19 12:08:14 +08:00
class https_request : public acl::thread
{
public:
2019-12-20 15:08:36 +08:00
https_request(const char* addr, acl::sslbase_conf* ssl_conf);
2015-12-19 12:08:14 +08:00
~https_request(void);
public:
// override
void* run(void);
private:
acl::http_request request_;
acl::string to_charset_;
// 处理 text/plain 类型数据
2015-12-19 12:08:14 +08:00
bool do_plain(acl::http_request& req);
// 处理 text/xml 类型数据
2015-12-19 12:08:14 +08:00
bool do_xml(acl::http_request& req);
// 处理 text/json 类型数据
2015-12-19 12:08:14 +08:00
bool do_json(acl::http_request& req);
};