| 63 | AbstractProxyResponseCommand::~AbstractProxyResponseCommand() = default; |
| 64 | |
| 65 | bool AbstractProxyResponseCommand::executeInternal() |
| 66 | { |
| 67 | std::shared_ptr<HttpResponse> httpResponse = |
| 68 | httpConnection_->receiveResponse(); |
| 69 | if (!httpResponse) { |
| 70 | // the server has not responded our request yet. |
| 71 | addCommandSelf(); |
| 72 | return false; |
| 73 | } |
| 74 | if (httpResponse->getStatusCode() != 200) { |
| 75 | throw DL_RETRY_EX(EX_PROXY_CONNECTION_FAILED); |
| 76 | } |
| 77 | getDownloadEngine()->addCommand(getNextCommand()); |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | } // namespace aria2 |
nothing calls this directly
no test coverage detected