Add HttpClient::getInternalService

This commit is contained in:
halx99 2021-09-05 22:18:42 +08:00
parent 14b08f77cc
commit 14a295af52
2 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,11 @@ void HttpClient::handleNetworkStatusChanged()
_service->set_option(YOPT_S_DNS_DIRTY, 1);
}
yasio::io_service* HttpClient::getInternalService()
{
return _service;
}
bool HttpClient::send(HttpRequest* request) {
if (!request)
return false;

View File

@ -193,6 +193,8 @@ public:
* When the device network status chagned, you should invoke this function
*/
void handleNetworkStatusChanged();
yasio::io_service* getInternalService();
private:
HttpClient();