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.