Skip to content

v0.2.51..v0.2.52 changeset HootNetworkRequest.h

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/HootNetworkRequest.h b/hoot-core/src/main/cpp/hoot/core/io/HootNetworkRequest.h
index 6521120..4a4974a 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/HootNetworkRequest.h
+++ b/hoot-core/src/main/cpp/hoot/core/io/HootNetworkRequest.h
@@ -124,6 +124,13 @@ public:
   void setOAuthKeys(const QString& consumer_key, const QString& consumer_secret,
                     const QString& access_token, const QString& access_secret);
 
+  /**
+   * @brief removeIpFromUrlString Replace the IP address in a URL with <host-ip> for logging purposes
+   * @param endpointUrl Endpoint URL as a string (probably contains full path of API call)
+   * @param url URL object for extracting the host to compare as an IP address or a domain name
+   */
+  static void removeIpFromUrlString(QString& endpointUrl, const QUrl& url);
+
 private:
   /**
    * @brief _networkRequest Function to make the actual request
Clone this wiki locally