Skip to main content

send_response

Function send_response 

Source
async fn send_response(
    socket: &mut TcpSocket<'_>,
    status: u16,
    content_type: &str,
    body: &[u8],
) -> Result<(), ()>
Expand description

Status + headers + body; bodies larger than the TX buffer are streamed.