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

Function non_empty

crates/openshell-supervisor-network/src/l7/rest.rs:1612–1614  ·  view source on GitHub ↗
(value: Option<&str>)

Source from the content-addressed store, hash-verified

1610}
1611
1612fn non_empty(value: Option<&str>) -> Option<&str> {
1613 value.map(str::trim).filter(|value| !value.is_empty())
1614}
1615
1616/// Check if the request includes `Expect: 100-continue`.
1617fn has_expect_continue(headers: &str) -> bool {

Callers 1

deny_response_bodyFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected