From: Thomas Geymayer Date: Sun, 27 Oct 2013 22:38:46 +0000 (+0100) Subject: HTTP: Rename urlretrieve/urlload to save/load. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f2188b33c6a777c4d4a110d9c4b3986a242f251b;p=simgear.git HTTP: Rename urlretrieve/urlload to save/load. --- diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index 03f13428..ed21f284 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -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); diff --git a/simgear/io/HTTPClient.hxx b/simgear/io/HTTPClient.hxx index 0ed210e5..c726dc60 100644 --- a/simgear/io/HTTPClient.hxx +++ b/simgear/io/HTTPClient.hxx @@ -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 = "");