MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / retrieve_from_url

Method retrieve_from_url

css-inline/src/resolver.rs:46–48  ·  view source on GitHub ↗

Retrieve a stylesheet from a network location. # Errors Any network-related error, or an error during response parsing.

(&self, url: &str)

Source from the content-addressed store, hash-verified

44 ///
45 /// Any network-related error, or an error during response parsing.
46 fn retrieve_from_url(&self, url: &str) -> Result<String> {
47 Err(self.unsupported(&format!("Loading external URLs is not supported: {url}")))
48 }
49 /// Retrieve a stylesheet from the local filesystem.
50 ///
51 /// # Errors

Callers

nothing calls this directly

Implementers 4

resolver.rscss-inline/src/resolver.rs
test_cachecss-inline/tests/test_inlining.rs
test_resolver_without_implementationcss-inline/tests/test_inlining.rs
try_frombindings/javascript/src/options.rs

Calls 1

unsupportedMethod · 0.80

Tested by

no test coverage detected