Skip to main content

serve

Function serve 

Source
pub async fn serve(addr: SocketAddr, cfg: PhronaConfig) -> Result<()>
Expand description

Serve the REST API on addr. Blocks until the server stops (Ctrl+C or SIGTERM trigger a graceful shutdown that drains in-flight requests).