MCPcopy Create free account
hub / github.com/google/pprof / absoluteURL

Function absoluteURL

internal/report/report.go:1354–1359  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

1352}
1353
1354func absoluteURL(str string) bool {
1355 // Avoid returning relative URLs to prevent unwanted local navigation
1356 // within pprof server.
1357 u, err := url.Parse(str)
1358 return err == nil && (u.Scheme == "https" || u.Scheme == "http")
1359}
1360
1361func abs64(i int64) int64 {
1362 if i < 0 {

Callers 1

DocURLMethod · 0.85

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…