2019-07-28 10:31:56 +08:00
|
|
|
#pragma once
|
2015-07-13 16:28:09 +08:00
|
|
|
|
|
|
|
class https_client
|
|
|
|
{
|
|
|
|
public:
|
2020-01-05 15:41:08 +08:00
|
|
|
https_client(acl::ostream& out, acl::sslbase_conf* conf);
|
2015-07-13 16:28:09 +08:00
|
|
|
~https_client();
|
|
|
|
|
|
|
|
bool http_request(acl::HttpServletRequest& req,
|
|
|
|
acl::HttpServletResponse& res);
|
|
|
|
|
|
|
|
private:
|
|
|
|
acl::ostream& out_;
|
2020-01-05 15:41:08 +08:00
|
|
|
acl::sslbase_conf* ssl_conf_;
|
2015-07-13 16:28:09 +08:00
|
|
|
|
|
|
|
bool connect_server(const acl::string& server_addr,
|
2020-01-05 15:41:08 +08:00
|
|
|
acl::http_client& client);
|
2015-07-13 16:28:09 +08:00
|
|
|
};
|