MCPcopy Create free account
hub / github.com/emwalker/digraph / avoid_requests

Method avoid_requests

backend/src/http/repo_url.rs:81–85  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn avoid_requests(&self) -> bool {
82 AVOID_REQUESTS
83 .iter()
84 .any(|suffix| self.host.ends_with(suffix))
85 }
86
87 pub fn ends_with(&self, suffix: &str) -> bool {
88 self.path.ends_with(suffix)

Callers 1

should_fetchMethod · 0.80

Calls 2

ends_withMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected