More SSL stuff (still doesn't work :/).
This commit is contained in:
@@ -57,6 +57,7 @@ class HTTPClient
|
||||
{
|
||||
private:
|
||||
std::unique_ptr<Socket> socket_;
|
||||
std::unique_ptr<Stream> sslStream_;
|
||||
mijin::BoxedObject<HTTPStream> stream_;
|
||||
ip_address_t lastIP_;
|
||||
std::uint16_t lastPort_ = 0;
|
||||
@@ -67,7 +68,7 @@ public:
|
||||
Task<StreamResult<HTTPResponse>> c_request(const URL& url, HTTPRequest request = {}) noexcept;
|
||||
void disconnect() noexcept;
|
||||
private:
|
||||
StreamError createSocket(ip_address_t address, std::uint16_t port, bool https) noexcept;
|
||||
StreamError createSocket(ip_address_t address, const std::string& hostname, std::uint16_t port, bool https) noexcept;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user