MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / respond

Function respond

crates/openshell-supervisor-network/src/proxy.rs:4321–4324  ·  view source on GitHub ↗
(client: &mut TcpStream, bytes: &[u8])

Source from the content-addressed store, hash-verified

4319}
4320
4321async 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///

Callers 2

handle_tcp_connectionFunction · 0.85
handle_forward_proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected