From f2188b33c6a777c4d4a110d9c4b3986a242f251b Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 27 Oct 2013 23:38:46 +0100 Subject: [PATCH] HTTP: Rename urlretrieve/urlload to save/load. --- simgear/io/HTTPClient.cxx | 6 +++--- simgear/io/HTTPClient.hxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 = ""); -- 2.39.5