MCPcopy Create free account
hub / github.com/bajrangCoder/setu / cancel_request

Method cancel_request

src/views/main_view.rs:1655–1669  ·  view source on GitHub ↗
(&mut self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

1653 } else {
1654 format!("{base_url}{query_string}")
1655 }
1656 }
1657
1658 fn extract_url_path(url: &str) -> Option<String> {
1659 let url = url.trim();
1660 if url.is_empty() {
1661 return None;
1662 }
1663
1664 let path = if let Some(after_scheme) = url
1665 .strip_prefix("https://")
1666 .or_else(|| url.strip_prefix("http://"))
1667 {
1668 after_scheme
1669 .find('/')
1670 .map(|i| &after_scheme[i..])
1671 .unwrap_or("/")
1672 } else if url.starts_with('/') {

Callers 4

send_requestMethod · 0.80
execute_commandMethod · 0.80
renderMethod · 0.80
render_request_panelMethod · 0.80

Calls 2

is_sendingMethod · 0.80
cancelMethod · 0.80

Tested by

no test coverage detected