Mercurial
comparison seobeo/seobeo_internal.h @ 72:4532ce6d9eb8
[Seobeo] Added router to the server logic. Few dowa string manipulation logics.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Mon, 29 Dec 2025 07:50:07 -0800 |
| parents | 75de5903355c |
| children | 70401cf61e97 |
comparison
equal
deleted
inserted
replaced
| 71:75de5903355c | 72:4532ce6d9eb8 |
|---|---|
| 63 | 63 |
| 64 | 64 |
| 65 // HTTP request map type: maps header names to header values | 65 // HTTP request map type: maps header names to header values |
| 66 typedef Dowa_KV(char*, char*) Seobeo_Request_Entry; | 66 typedef Dowa_KV(char*, char*) Seobeo_Request_Entry; |
| 67 | 67 |
| 68 // --- Router Types --- // | |
| 69 // Forward declaration | |
| 70 typedef struct Seobeo_Route_Struct Seobeo_Route; | |
| 71 | |
| 72 // Route handler function type | |
| 73 typedef Seobeo_Request_Entry* (*Seobeo_Route_Handler)( | |
| 74 Seobeo_Request_Entry *p_request_map, | |
| 75 Dowa_Arena *p_arena | |
| 76 ); | |
| 77 | |
| 68 // --- Parse Header into Dowa Map ---// | 78 // --- Parse Header into Dowa Map ---// |
| 69 extern int Seobeo_Web_Header_Parse(Seobeo_Handle *p_handle, Seobeo_Request_Entry **pp_map, Dowa_Arena *p_arena); | 79 extern int Seobeo_Web_Header_Parse(Seobeo_Handle *p_handle, Seobeo_Request_Entry **pp_map, Dowa_Arena *p_arena); |
| 70 | 80 |
| 71 // --- Handle Request --- // | 81 // --- Handle Request --- // |
| 72 extern void Seobeo_Web_HandleClientRequest(Seobeo_Handle *cli, Seobeo_Cache_Entry *p_html_cache); | 82 extern void Seobeo_Web_HandleClientRequest(Seobeo_Handle *cli, Seobeo_Cache_Entry *p_html_cache); |