comparison seobeo/seobeo.h @ 260:1f9877b637e9

Add Copilot-powered cyberpunk JRPG chat Integrate the production JRPG chat with Seobeo streaming, Deita persistence, and a Bazel-managed Copilot SDK and LiteLLM inference stack. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Wed, 05 Aug 2026 09:19:41 -0700
parents 609d3c6aff4e
children 04fee26ecce0
comparison
equal deleted inserted replaced
259:667156fcd3e3 260:1f9877b637e9
76 extern void Seobeo_Web_Header_Generate_KeepAlive(void *buffer, int status, const char *content_type, const int content_length, boolean keep_alive); 76 extern void Seobeo_Web_Header_Generate_KeepAlive(void *buffer, int status, const char *content_type, const int content_length, boolean keep_alive);
77 /* Start a Generic HTTP static file server with given folder. It will store folder into memory. */ 77 /* Start a Generic HTTP static file server with given folder. It will store folder into memory. */
78 extern int Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count); 78 extern int Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
79 /* Start a web server bound to a specific host. Pass NULL to bind all interfaces. */ 79 /* Start a web server bound to a specific host. Pass NULL to bind all interfaces. */
80 extern int Seobeo_Web_Server_Start_On(const char *host, const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count); 80 extern int Seobeo_Web_Server_Start_On(const char *host, const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
81 /* Request a running server to stop and return from its start function. */
82 extern void Seobeo_Web_Server_Stop(void);
81 /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */ 83 /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */
82 extern int Seobeo_Web_Client_Get(const char *host, const char *port, const char *path); 84 extern int Seobeo_Web_Client_Get(const char *host, const char *port, const char *path);
83 85
84 // --- HTTP Client (curl-like API) --- // 86 // --- HTTP Client (curl-like API) --- //
85 /* Create a new HTTP client request with the given URL. */ 87 /* Create a new HTTP client request with the given URL. */
344 extern void Seobeo_Router_Init(); 346 extern void Seobeo_Router_Init();
345 /* Register an API route handler. Call before starting server. */ 347 /* Register an API route handler. Call before starting server. */
346 extern void Seobeo_Router_Register(const char *method, const char *path_pattern, Seobeo_Route_Handler handler); 348 extern void Seobeo_Router_Register(const char *method, const char *path_pattern, Seobeo_Route_Handler handler);
347 /* Register a streaming route handler. Handler receives client handle for direct streaming. */ 349 /* Register a streaming route handler. Handler receives client handle for direct streaming. */
348 extern void Seobeo_Router_Register_Stream(const char *method, const char *path_pattern, Seobeo_Stream_Handler handler); 350 extern void Seobeo_Router_Register_Stream(const char *method, const char *path_pattern, Seobeo_Stream_Handler handler);
349 /* Register a GET route that owns an SSE stream until its handler returns. */ 351 /* Register an SSE route for a specific HTTP method. */
352 extern void Seobeo_Router_Register_SSE_Method(const char *method, const char *path_pattern, Seobeo_SSE_Handler handler);
353 /* Register a GET SSE route for compatibility. */
350 extern void Seobeo_Router_Register_SSE(const char *path_pattern, Seobeo_SSE_Handler handler); 354 extern void Seobeo_Router_Register_SSE(const char *path_pattern, Seobeo_SSE_Handler handler);
351 /* Clean up router resources */ 355 /* Clean up router resources */
352 extern void Seobeo_Router_Destroy(); 356 extern void Seobeo_Router_Destroy();
353 /* Find matching route handler (internal use) */ 357 /* Find matching route handler (internal use) */
354 extern Seobeo_Route_Handler Seobeo_Router_Find_Handler(const char *method, const char *path, Seobeo_Request_Entry **pp_request_map, Dowa_Arena *p_arena); 358 extern Seobeo_Route_Handler Seobeo_Router_Find_Handler(const char *method, const char *path, Seobeo_Request_Entry **pp_request_map, Dowa_Arena *p_arena);