Skip to main content

serve_http

Function serve_http 

Source
pub fn serve_http(
    git_dir: impl AsRef<Path>,
    addr: SocketAddr,
    stop: Arc<AtomicBool>,
) -> Result<(), ServerError>
Expand description

Bind addr and serve git_dir over smart HTTP until stop is set or accept fails.