MCPcopy Create free account
hub / github.com/aria2/aria2 / executeInternal

Method executeInternal

src/AbstractProxyResponseCommand.cc:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63AbstractProxyResponseCommand::~AbstractProxyResponseCommand() = default;
64
65bool 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

Callers

nothing calls this directly

Calls 3

addCommandMethod · 0.80
receiveResponseMethod · 0.45
getStatusCodeMethod · 0.45

Tested by

no test coverage detected