comparison seobeo/seobeo.h @ 251:117c4d53c9a4

[ui] Add HTML-first Web Component system Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Tue, 04 Aug 2026 09:14:57 -0700
parents 745fd127b2a1
children 609d3c6aff4e
comparison
equal deleted inserted replaced
250:745fd127b2a1 251:117c4d53c9a4
70 extern void Seobeo_Web_Header_Generate(void *buffer, int status, const char *content_type, const int content_length); 70 extern void Seobeo_Web_Header_Generate(void *buffer, int status, const char *content_type, const int content_length);
71 /* Generate HTTP 1.1 Header with keep-alive option. */ 71 /* Generate HTTP 1.1 Header with keep-alive option. */
72 extern void Seobeo_Web_Header_Generate_KeepAlive(void *buffer, int status, const char *content_type, const int content_length, boolean keep_alive); 72 extern void Seobeo_Web_Header_Generate_KeepAlive(void *buffer, int status, const char *content_type, const int content_length, boolean keep_alive);
73 /* Start a Generic HTTP static file server with given folder. It will store folder into memory. */ 73 /* Start a Generic HTTP static file server with given folder. It will store folder into memory. */
74 extern int Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count); 74 extern int Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
75 /* Start a web server bound to a specific host. Pass NULL to bind all interfaces. */
76 extern int Seobeo_Web_Server_Start_On(const char *host, const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
75 /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */ 77 /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */
76 extern int Seobeo_Web_Client_Get(const char *host, const char *port, const char *path); 78 extern int Seobeo_Web_Client_Get(const char *host, const char *port, const char *path);
77 79
78 // --- HTTP Client (curl-like API) --- // 80 // --- HTTP Client (curl-like API) --- //
79 /* Create a new HTTP client request with the given URL. */ 81 /* Create a new HTTP client request with the given URL. */