Skip to main content

respond_headers

Function respond_headers 

Source
pub fn respond_headers(
    socket: &impl AsFd,
    response: Response,
    body_length: u64,
) -> Result<()>
Expand description

Write framing for a body streamed separately by the host. The host must then write exactly body_length bytes and close the connection on failure.