MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-tool/src/webfetch.rs:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15impl WebFetchTool {
16 pub fn new() -> Self {
17 Self {
18 client: Client::builder()
19 .user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36")
20 .timeout(std::time::Duration::from_secs(MAX_TIMEOUT_SECS))
21 .build()
22 .unwrap(),
23 }
24 }
25}
26
27#[derive(Debug, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls 1

buildMethod · 0.80

Tested by

no test coverage detected