(client: &mut TcpStream, bytes: &[u8])
| 4319 | } |
| 4320 | |
| 4321 | async fn respond(client: &mut TcpStream, bytes: &[u8]) -> Result<()> { |
| 4322 | client.write_all(bytes).await.into_diagnostic()?; |
| 4323 | Ok(()) |
| 4324 | } |
| 4325 | |
| 4326 | /// Build an HTTP error response with a JSON body. |
| 4327 | /// |
no outgoing calls
no test coverage detected