MCPcopy Create free account
hub / github.com/LeenHawk/sgproxy / block_has_cache_control

Function block_has_cache_control

src/proxy.rs:762–766  ·  view source on GitHub ↗
(block: &Value)

Source from the content-addressed store, hash-verified

760}
761
762fn block_has_cache_control(block: &Value) -> bool {
763 block
764 .as_object()
765 .is_some_and(|block_map| block_map.contains_key("cache_control"))
766}
767
768fn block_text(block: &Value) -> Option<&str> {
769 let block_map = block.as_object()?;

Calls

no outgoing calls

Tested by

no test coverage detected