MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / sanitize_webinspectord_socket_path

Function sanitize_webinspectord_socket_path

packages/server/src/webkit.rs:846–852  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

844}
845
846fn sanitize_webinspectord_socket_path(raw: &str) -> Option<&str> {
847 let path = raw.trim();
848 if path.is_empty() || !path.ends_with(WEBINSPECTORD_SOCKET_NAME) {
849 return None;
850 }
851 Some(path)
852}
853
854async fn send_forward_get_listing<W: AsyncWrite + Unpin>(
855 writer: &mut W,

Callers 1

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected