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

Function http_response_is_success

crates/openshell-core/src/config.rs:286–288  ·  view source on GitHub ↗
(response: &[u8])

Source from the content-addressed store, hash-verified

284
285#[cfg(unix)]
286fn http_response_is_success(response: &[u8]) -> bool {
287 response.starts_with(b"HTTP/1.1 200") || response.starts_with(b"HTTP/1.0 200")
288}
289
290#[cfg(unix)]
291fn contains_ascii(haystack: &[u8], needle: &[u8]) -> bool {

Callers 1

podman_socket_respondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected