aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.h')
-rw-r--r--src/uri.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/uri.h b/src/uri.h
index 6a20e94a4..1189cb227 100644
--- a/src/uri.h
+++ b/src/uri.h
@@ -30,4 +30,13 @@ bool uri_has_scheme(const char *uri);
const char *
uri_get_suffix(const char *uri);
+/**
+ * Removes HTTP username and password from the URI. This may be
+ * useful for displaying an URI without disclosing secrets. Returns
+ * NULL if nothing needs to be removed, or if the URI is not
+ * recognized.
+ */
+char *
+uri_remove_auth(const char *uri);
+
#endif