Skip to main content

serve

Function serve 

Source
pub async fn serve(
    app: Router,
    admin: Router,
    bind: &str,
    name: &str,
    limits: &Limits,
) -> Result<(), Box<dyn Error>>
Expand description

Serves app on bind until asked to stop, within limits, answering web pages from the origins in CORS_ORIGINS; and admin on ADMIN_ADDR and metrics on METRICS_ADDR, if set.