func net/http.Redirect
17 uses
net/http (current package)
server.go#L2129: func Redirect(w ResponseWriter, r *Request, url string, code int) {
server.go#L2205: Redirect(w, r, rh.url, rh.code)
golang.org/x/pkgsite/internal/frontend
404.go#L63: http.Redirect(w, r, fmt.Sprintf("/%s", path), http.StatusFound)
404.go#L102: http.Redirect(w, r, u, http.StatusFound)
404.go#L108: http.Redirect(w, r, u, http.StatusFound)
404.go#L122: http.Redirect(w, r, "/search?q="+url.QueryEscape(fullPath), http.StatusFound)
details.go#L39: http.Redirect(w, r, "/std", http.StatusMovedPermanently)
details.go#L42: http.Redirect(w, r, urlPath, http.StatusMovedPermanently)
details.go#L46: http.Redirect(w, r, strings.TrimSuffix(r.URL.Path, "/"), http.StatusMovedPermanently)
redirect.go#L20: http.Redirect(w, r, urlPath, http.StatusMovedPermanently)
redirect.go#L26: http.Redirect(w, r, urlPath, http.StatusMovedPermanently)
search.go#L251: http.Redirect(w, r, "/", http.StatusFound)
search.go#L275: http.Redirect(w, r, path, http.StatusFound)
server.go#L153: http.Redirect(w, r, "/cmd/cgo", http.StatusMovedPermanently)
unit.go#L105: http.Redirect(w, r, r.URL.Path, http.StatusFound)
unit.go#L161: http.Redirect(w, r, r.URL.Path, http.StatusFound)
golang.org/x/pkgsite/internal/middleware
betaRedirect.go#L47: http.Redirect(w, r, betaPkgGoDevURL(r.URL).String(), http.StatusFound)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |