diff options
| author | amelia squires <[email protected]> | 2024-09-08 05:13:11 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2024-09-08 05:13:11 -0500 |
| commit | e9cb2e0f75cbfa6bde188b9e043ebfd8d30b9451 (patch) | |
| tree | 57368ce9ae49e89809171dc6ae85fde936a2b5f2 /src/net/util.h | |
| parent | 6ca752754556c44c485c4534b5f3453c7a1490c7 (diff) | |
| parent | ab5c24cd0eb59b704cf98d388338293db3768c81 (diff) | |
merge rewrite-net-route-matching
Diffstat (limited to 'src/net/util.h')
| -rw-r--r-- | src/net/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/util.h b/src/net/util.h index d723b6f..98d4d93 100644 --- a/src/net/util.h +++ b/src/net/util.h @@ -1,5 +1,5 @@ #include "common.h" - +#include "../types/larray.h" /** * @brief calls recv into buffer until everything is read * @@ -45,3 +45,8 @@ void http_code(int code, char* code_det); void client_fd_errors(int client_fd); int content_disposition(str* src, parray_t** _dest); + +parray_t* route_match(parray_t* paths, char* path, larray_t** params); + +int match_param(char* path, char* match, parray_t* arr); + |
