Skip to main content

serve

Function serve 

Source
pub fn serve(
    repository: &impl Repository,
    request: Request<'_>,
    output: &mut impl Write,
) -> Result<Response>
Expand description

Always send Cache-Control: no-store for discovery and upload-pack responses. A failed call invalidates all output; hosts must discard it before replying. Reserves 1 KiB of read scratch on the stack for streaming-only providers.