mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
Previously we only allows http/https urls, let's open this up a bit. Why? Because it makes testing *so* *much* *easier* as we don't need to run a HTTP server all the time. CURL mostly abstracts the differences of http/https away from us, hence we can get away with very little extra work.
14 lines
303 B
C
14 lines
303 B
C
/* 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);
|