Skip to main content

split_upstream

Function split_upstream 

Source
pub fn split_upstream(url: &str) -> (&str, &str)
Expand description

Split a full upstream URL into (base, path). e.g. “http://localhost:9000/mcp” → (“http://localhost:9000”, “/mcp”) e.g. “http://localhost:9000” → (“http://localhost:9000”, “”)