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.
async fn send_response(
socket: &mut TcpSocket<'_>,
status: u16,
content_type: &str,
body: &[u8],
) -> Result<(), ()>Status + headers + body; bodies larger than the TX buffer are streamed.