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

Function server_url

crates/opencode-cli/src/main.rs:3674–3680  ·  view source on GitHub ↗
(base: &str, path: &str)

Source from the content-addressed store, hash-verified

3672}
3673
3674fn server_url(base: &str, path: &str) -> String {
3675 format!(
3676 "{}/{}",
3677 base.trim_end_matches('/'),
3678 path.trim_start_matches('/')
3679 )
3680}
3681
3682async fn parse_http_json<T: for<'de> Deserialize<'de>>(
3683 response: reqwest::Response,

Callers 5

wait_for_server_readyFunction · 0.85
resolve_remote_sessionFunction · 0.85
handle_mcp_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected