Check if the request includes `Expect: 100-continue`.
(headers: &str)
| 1615 | |
| 1616 | /// Check if the request includes `Expect: 100-continue`. |
| 1617 | fn 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)] |
no outgoing calls
no test coverage detected