]> git.mxchange.org Git - simgear.git/commitdiff
HTTP: Rename urlretrieve/urlload to save/load.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 27 Oct 2013 22:38:46 +0000 (23:38 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 27 Oct 2013 22:38:46 +0000 (23:38 +0100)
simgear/io/HTTPClient.cxx
simgear/io/HTTPClient.hxx

index 03f13428d965f9265cfe6ea7bd35129b51994d87..ed21f284be0183b016a4f5fb9ddd3021826b08be 100644 (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);
index 0ed210e5d6286a2135d319775577edb1205d7b4b..c726dc60e608cb61fa0edb34d13faab0ed62b1cb 100644 (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 = "");