23 lines
647 B
Plaintext
23 lines
647 B
Plaintext
:sig
|
|
bool server_stop(String key)
|
|
|
|
:params
|
|
key : runtime-wide server key used with `server_start_http()`
|
|
return value : `true` when no listener remains or a stop signal was sent
|
|
|
|
:see
|
|
>sys
|
|
server_start_http
|
|
|
|
:content
|
|
Stops a custom server listener by key and removes its registry config.
|
|
|
|
```uce
|
|
server_stop("site-tests-http");
|
|
```
|
|
|
|
`server_stop()` currently targets custom servers started through `server_start_http()`. The same key model is intended to extend to future `server_start_tcp()` and `server_start_udp()` helpers.
|
|
|
|
:example
|
|
print("server_stop is resource-bound; configure the service or connection, then call it in request code.\n");
|