Skip to main content

Module callback_server

Module callback_server 

Source
Expand description

Local HTTP callback server for receiving async RAP tool results.

Functionsยง

bind_callback_listener
Bind a TCP listener on localhost with an OS-assigned port. Returns the listener and the base URL (e.g. http://127.0.0.1:{port}).
start_callback_channel
Start a callback server that collects RapCallback values into a channel. Returns (base_url, receiver).
start_callback_server
Start a callback server that passes each RapCallback to the given handler. Returns the base URL that RAP tools should POST results to.
start_callback_server_on
Start the accept loop on a pre-bound listener, dispatching each RapCallback to the given handler. Returns the spawned accept-loop task.