core: Get rid of the httpd JS object. Potential progress on #108.

This commit is contained in:
2025-04-12 09:43:55 -04:00
parent 8104f6f228
commit 5bba5776b3
3 changed files with 32 additions and 28 deletions

View File

@ -13,6 +13,8 @@
#include "quickjs.h"
typedef struct _tf_http_t tf_http_t;
/**
** Register the HTTP script interface. Also registers a number of built-in
** request handlers. An ongoing project is to move the JS request handlers
@ -21,4 +23,16 @@
*/
void tf_httpd_register(JSContext* context);
/**
** Create the HTTP server instance.
** @param context The JS context.
*/
tf_http_t* tf_httpd_create(JSContext* context);
/**
** Destroy the HTTP server instance.
** @param http The HTTP server instance.
*/
void tf_httpd_destroy(tf_http_t* http);
/** @} */