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 | eda53f915dc319cec7a4fe680734db87a113fe5e (patch) | |
| tree | 57368ce9ae49e89809171dc6ae85fde936a2b5f2 /src/net/util.h | |
| parent | 4523c0c2ae946e1e5c982a01c961d3aaacd7858a (diff) | |
| parent | 86fbbbc48b76436cddd08b04bd0d751c6e51d29f (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); + |
