MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / build_http_client

Function build_http_client

claw-code/rust/crates/tools/src/lib.rs:924–931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

922}
923
924fn build_http_client() -> Result<Client, String> {
925 Client::builder()
926 .timeout(Duration::from_secs(20))
927 .redirect(reqwest::redirect::Policy::limited(10))
928 .user_agent("clawd-rust-tools/0.1")
929 .build()
930 .map_err(|error| error.to_string())
931}
932
933fn normalize_fetch_url(url: &str) -> Result<String, String> {
934 let parsed = reqwest::Url::parse(url).map_err(|error| error.to_string())?;

Callers 2

execute_web_fetchFunction · 0.85
execute_web_searchFunction · 0.85

Calls 1

buildMethod · 0.80

Tested by

no test coverage detected