Skip to main content

Module node_http

Module node_http 

Source

Functions§

has_active_servers
install
listener_fds
register_active_app
Register a JS-thread-bound uWS App::<false> so has_active_servers() reports liveness and drain_and_check keeps ticking the loop. Idempotent: re-registering the same pointer is a no-op (defensive against double registration in error paths). # Safety: app must be a live *mut App<false> returned by App::<false>::create, valid until unregister_active_app is called for it.
register_liveness_probe
Register a liveness probe (idempotent). Called by subsystem installers (node_tls). Probes run on the JS thread only.
unregister_active_app
Unregister a previously-registered App::<false>. No-op if not present (defensive against double-close paths). # Safety: app must match a pointer previously passed to register_active_app.