mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
Ref T203, utility functions for URL
This commit is contained in:
@@ -87,6 +87,9 @@ namespace BlackMisc
|
||||
//! All failed URLs
|
||||
const CUrlList &getFailedUrls() const { return m_failedUrls; }
|
||||
|
||||
//! Size of failed URLs
|
||||
int getFailedUrlsSize() const { return m_failedUrls.size(); }
|
||||
|
||||
//! Get without the failed URLs
|
||||
CUrlList getWithoutFailed() const;
|
||||
|
||||
@@ -105,6 +108,9 @@ namespace BlackMisc
|
||||
//! More URLs to try
|
||||
bool hasMoreUrlsToTry() const;
|
||||
|
||||
//! Number of URLs which can be used for a retry
|
||||
int numberOfStillValidUrls() const;
|
||||
|
||||
//! Next utl from this list
|
||||
CUrl obtainNextUrl(bool randomStart = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user