Add http_match_host and update 060_virtual_hosts_over_https.c

This commit is contained in:
2025-10-17 12:10:35 +02:00
parent e26042e2e7
commit 17ad7ad383
7 changed files with 47 additions and 14 deletions
+3
View File
@@ -193,6 +193,9 @@ HTTP_String http_get_cookie (HTTP_Request *req, HTTP_String name);
HTTP_String http_get_param (HTTP_String body, HTTP_String str, char *mem, int cap);
int http_get_param_i (HTTP_String body, HTTP_String str);
// Checks whether the request was meant for the host with the given
// domain an port. If port is -1, the default value of 80 is assumed.
bool http_match_host(HTTP_Request *req, HTTP_String domain, int port);
#endif // PARSE_INCLUDED