Add custom server API and runtime limits
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
: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.
|
||||
Reference in New Issue
Block a user