Skip to main content

write_response

Function write_response 

Source
pub async fn write_response(
    stream: &mut TcpStream,
    response: ResponseWrite,
) -> Result<()>
Expand description

Writes a response to a TCP stream.

Handles both full (buffered) and streaming (chunked) responses. Flushes the stream after all data has been written.