Skip to main content

serve_http

Function serve_http 

Source
pub async fn serve_http(router: Router, addr: SocketAddr) -> Result<()>
Expand description

Serves router over plain HTTP. Use this only behind a reverse proxy that terminates TLS (matches how the other linglin.art sites are deployed); for a service that must terminate TLS itself, use serve_tls or [serve_dev_tls] instead.