mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-13 16:35:35 +08:00
9697f95b8f
This reverts commit 15d999759e
.
19 lines
373 B
C++
19 lines
373 B
C++
#pragma once
|
|
|
|
class https_client
|
|
{
|
|
public:
|
|
https_client(acl::ostream& out, acl::polarssl_conf* conf);
|
|
~https_client();
|
|
|
|
bool http_request(acl::HttpServletRequest& req,
|
|
acl::HttpServletResponse& res);
|
|
|
|
private:
|
|
acl::ostream& out_;
|
|
acl::polarssl_conf* ssl_conf_;
|
|
|
|
bool connect_server(const acl::string& server_addr,
|
|
acl::http_client& client);
|
|
};
|