Mercurial
diff 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 |
line wrap: on
line diff
--- a/seobeo/seobeo.h Tue Aug 04 06:23:37 2026 -0700 +++ b/seobeo/seobeo.h Tue Aug 04 09:14:57 2026 -0700 @@ -72,6 +72,8 @@ extern void Seobeo_Web_Header_Generate_KeepAlive(void *buffer, int status, const char *content_type, const int content_length, boolean keep_alive); /* Start a Generic HTTP static file server with given folder. It will store folder into memory. */ extern int Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count); +/* Start a web server bound to a specific host. Pass NULL to bind all interfaces. */ +extern int Seobeo_Web_Server_Start_On(const char *host, const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count); /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */ extern int Seobeo_Web_Client_Get(const char *host, const char *port, const char *path);