HTTP: Rename urlretrieve/urlload to save/load.

This commit is contained in:
Thomas Geymayer
2013-10-27 23:38:46 +01:00
parent f93fead8f2
commit f2188b33c6
2 changed files with 6 additions and 6 deletions

View File

@@ -766,8 +766,8 @@ void Client::makeRequest(const Request_ptr& r)
}
//------------------------------------------------------------------------------
FileRequestRef Client::urlretrieve( const std::string& url,
const std::string& filename )
FileRequestRef Client::save( const std::string& url,
const std::string& filename )
{
FileRequestRef req = new FileRequest(url, filename);
makeRequest(req);
@@ -775,7 +775,7 @@ FileRequestRef Client::urlretrieve( const std::string& url,
}
//------------------------------------------------------------------------------
MemoryRequestRef Client::urlload(const std::string& url)
MemoryRequestRef Client::load(const std::string& url)
{
MemoryRequestRef req = new MemoryRequest(url);
makeRequest(req);

View File

@@ -56,15 +56,15 @@ public:
* @param filename Path to the target file
* @param data Data for POST request
*/
FileRequestRef urlretrieve( const std::string& url,
const std::string& filename );
FileRequestRef save( const std::string& url,
const std::string& filename );
/**
* Request a resource and keep it in memory.
*
* @param url The resource to download
*/
MemoryRequestRef urlload(const std::string& url);
MemoryRequestRef load(const std::string& url);
void setUserAgent(const std::string& ua);
void setProxy(const std::string& proxy, int port, const std::string& auth = "");