Skip to main content

serve_http

Function serve_http 

Source
pub async fn serve_http(
    listener: TcpListener,
    service: Service,
    auth: Arc<Auth>,
) -> Result<()>
Expand description

Serve HTTP/JSON on an already-bound listener until the process ends.