MCPcopy Create free account
hub / github.com/ShipSecAI/studio / parseUrl

Function parseUrl

frontend/src/components/timeline/NetworkPanel.tsx:118–128  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

116};
117
118const parseUrl = (url: string): { host: string; path: string } => {
119 try {
120 const parsed = new URL(url);
121 return {
122 host: parsed.host,
123 path: parsed.pathname + parsed.search,
124 };
125 } catch {
126 return { host: '', path: url };
127 }
128};
129
130interface HeadersTableProps {
131 headers: HarHeader[];

Callers 1

NetworkPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected