summaryrefslogtreecommitdiffstats
path: root/src/shared/web-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/web-util.h')
-rw-r--r--src/shared/web-util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shared/web-util.h b/src/shared/web-util.h
new file mode 100644
index 0000000..88b4897
--- /dev/null
+++ b/src/shared/web-util.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include <stdbool.h>
+
+#include "macro.h"
+
+bool http_url_is_valid(const char *url) _pure_;
+bool file_url_is_valid(const char *url) _pure_;
+
+bool documentation_url_is_valid(const char *url) _pure_;
+
+bool http_etag_is_valid(const char *etag);