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

Function has_expect_continue

crates/openshell-supervisor-network/src/l7/rest.rs:1617–1625  ·  view source on GitHub ↗

Check if the request includes `Expect: 100-continue`.

(headers: &str)

Source from the content-addressed store, hash-verified

1615
1616/// Check if the request includes `Expect: 100-continue`.
1617fn has_expect_continue(headers: &str) -> bool {
1618 headers.lines().skip(1).any(|line| {
1619 let lower = line.to_ascii_lowercase();
1620 lower.starts_with("expect:")
1621 && lower
1622 .split_once(':')
1623 .is_some_and(|(_, v)| v.trim() == "100-continue")
1624 })
1625}
1626
1627/// Resolved payload signing mode for a `SigV4` request.
1628#[derive(Debug, Clone, Copy, PartialEq, Eq)]

Calls

no outgoing calls

Tested by

no test coverage detected