add request url parsing / handling

This commit is contained in:
2026-04-17 20:32:46 -05:00
parent 3dc05cccb0
commit 4a306746f9
4 changed files with 61 additions and 7 deletions

15
server/include/array.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef HMAIL_ARRAY_H
#define HMAIL_ARRAY_H
#include "mongoose.h"
typedef struct {
struct mg_str* items;
size_t count;
size_t capacity;
} array_mg_str;
void array_mg_str_append(array_mg_str* arr, struct mg_str item);
void split_mg_str(struct mg_str* string, const char token, array_mg_str* return_array);
#endif