Skip to main content

respond_stream

Function respond_stream 

Source
pub fn respond_stream(
    socket: &impl AsFd,
    repository: &impl Repository,
    encoder: &mut ResponseEncoder<'_>,
    staging: &mut [u8],
) -> Result<()>
Expand description

Send a prepared pull response with HTTP/1.0 close-delimited framing and caller-owned staging. Each successful socket write precedes the next pull. On any failure cancel the cursor and close the socket; never retry headers.