2#ifndef _KURLYK_STARTUP_AUTO_INITIALIZER_HPP_INCLUDED
3#define _KURLYK_STARTUP_AUTO_INITIALIZER_HPP_INCLUDED
21# if KURLYK_HTTP_SUPPORT
23 instance.register_manager(m_http);
25# if KURLYK_WEBSOCKET_SUPPORT
27 instance.register_manager(m_ws);
38# if KURLYK_HTTP_SUPPORT
41# if KURLYK_WEBSOCKET_SUPPORT
Manages and processes HTTP requests using a singleton pattern.
static HttpRequestManager & get_instance()
Get the singleton instance of HttpRequestManager.
Manages backend-specific WebSocket client instances and coordinates their lifecycle.
static WebSocketManager & get_instance()
Get the singleton instance of WebSocketManager.
void stop()
Stops the worker thread, ensuring all tasks are completed.
static NetworkWorker & get_instance()
Get the singleton instance of NetworkWorker.
Automatically registers and manages network task managers.
AutoInitializer()
Constructs and registers all available managers.
~AutoInitializer()
Stops the NetworkWorker before program termination.
#define KURLYK_AUTO_INIT_USE_ASYNC
Determines whether the NetworkWorker runs in a background thread during automatic initialization.
AutoInitializer _kurlyk_auto_initializer