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 WebSocket client instances, providing centralized control for processing, resetting,...
static WebSocketManager & get_instance()
Get the singleton instance of WebSocketManager.
static NetworkWorker & get_instance()
Get the singleton instance of NetworkWorker.
void shutdown()
Shuts down the worker, clearing all active requests and pending tasks.
Automatically registers and manages network task managers.
AutoInitializer()
Constructs and registers all available managers.
~AutoInitializer()
Shuts down the NetworkWorker before program termination.
#define KURLYK_AUTO_INIT_USE_ASYNC
Determines whether the NetworkWorker runs in a background thread during automatic initialization.
static kurlyk::startup::AutoInitializer _kurlyk_auto_initializer