MCPcopy Create free account
hub / github.com/FloatTech/AnimeAPI / GetRealURL

Function GetRealURL

bilibili/util.go:17–25  ·  view source on GitHub ↗

GetRealURL 获取跳转后的链接

(url string)

Source from the content-addressed store, hash-verified

15
16// GetRealURL 获取跳转后的链接
17func GetRealURL(url string) (realurl string, err error) {
18 data, err := http.Head(url)
19 if err != nil {
20 return
21 }
22 _ = data.Body.Close()
23 realurl = data.Request.URL.String()
24 return
25}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…