MCPcopy
hub / github.com/irbis-sh/zen-desktop / renderURLWithoutPort

Function renderURLWithoutPort

internal/networkrules/networkrules.go:140–149  ·  view source on GitHub ↗
(u *url.URL)

Source from the content-addressed store, hash-verified

138}
139
140func renderURLWithoutPort(u *url.URL) string {
141 stripped := url.URL{
142 Scheme: u.Scheme,
143 Host: u.Hostname(),
144 Path: u.Path,
145 RawQuery: u.RawQuery,
146 }
147
148 return stripped.String()
149}

Callers 2

ModifyReqMethod · 0.85
ModifyResMethod · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected