HttpClient::NO_TIMEOUT is added to indicate that no timeout is set up.
Minor code changes.