mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Add docstrings
This commit is contained in:
1 parent
a4d5a77afd
commit
56388f282c
24 files changed
+2062
-764
No files matched your search
@@ -4,7 +4,7 @@ struct url {
|
||||
size_t key, user, pass, host, port, uri, end;
|
||||
};
|
||||
|
||||
int mg_url_is_ssl(const char *url) {
|
||||
bool mg_url_is_ssl(const char *url) {
|
||||
return strncmp(url, "wss:", 4) == 0 || strncmp(url, "https:", 6) == 0 ||
|
||||
strncmp(url, "mqtts:", 6) == 0 || strncmp(url, "ssl:", 4) == 0 ||
|
||||
strncmp(url, "tls:", 4) == 0 || strncmp(url, "tcps:", 5) == 0;
|
||||
|
||||
Reference in new issue
Block a user