| 148 | } |
| 149 | |
| 150 | void HTTPSClientEx::onReceivedResponseError(const HTTPResponse& response, const std::string& error) |
| 151 | { |
| 152 | // Cancel timeout check timer |
| 153 | if (_timeout) |
| 154 | _timeout->Cancel(); |
| 155 | |
| 156 | SetPromiseError(error); |
| 157 | } |
| 158 | |
| 159 | void HTTPSClientEx::SetPromiseValue(const HTTPResponse& response) |
| 160 | { |