net/http.Request.URL (field)
130 uses
net/http (current package)
client.go#L176: for _, cookie := range c.Jar.Cookies(req.URL) {
client.go#L186: c.Jar.SetCookies(req.URL, rc)
client.go#L219: if req.URL == nil {
client.go#L246: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L596: if req.URL == nil {
client.go#L624: urlStr = stripPassword(resp.Request.URL)
client.go#L626: urlStr = stripPassword(req.URL)
client.go#L645: u, err := req.URL.Parse(loc)
client.go#L651: if req.Host != "" && req.Host != req.URL.Host {
client.go#L663: URL: u,
client.go#L682: if !stripSensitiveHeaders && reqs[0].URL.Host != req.URL.Host {
client.go#L683: if !shouldCopyHeaderOnRedirect(reqs[0].URL, req.URL) {
client.go#L691: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
fs.go#L680: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L703: url := r.URL.Path
fs.go#L723: url := r.URL.Path
fs.go#L778: if q := r.URL.RawQuery; q != "" {
fs.go#L807: if containsDotDot(r.URL.Path) {
fs.go#L841: if containsDotDot(r.URL.Path) {
fs.go#L981: upath := r.URL.Path
fs.go#L984: r.URL.Path = upath
h2_bundle.go#L6419: URL: url_,
h2_bundle.go#L8043: switch req.URL.Scheme {
h2_bundle.go#L8054: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L9514: if req.URL == nil {
h2_bundle.go#L9520: host = req.URL.Host
h2_bundle.go#L9541: path = req.URL.RequestURI()
h2_bundle.go#L9544: path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)
h2_bundle.go#L9546: if req.URL.Opaque != "" {
h2_bundle.go#L9547: return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque)
h2_bundle.go#L9579: f(":scheme", req.URL.Scheme)
request.go#L130: URL *url.URL
request.go#L393: r2.URL = cloneURL(r.URL)
request.go#L530: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L607: if r.URL == nil {
request.go#L610: host = r.URL.Host
request.go#L646: ruri := r.URL.RequestURI()
request.go#L647: if usingProxy && r.URL.Scheme != "" && r.URL.Opaque == "" {
request.go#L648: ruri = r.URL.Scheme + "://" + host + ruri
request.go#L649: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L652: if r.URL.Opaque != "" {
request.go#L653: ruri = r.URL.Opaque
request.go#L915: URL: u,
request.go#L1123: if req.URL, err = url.ParseRequestURI(rawurl); err != nil {
request.go#L1129: req.URL.Scheme = ""
request.go#L1149: req.Host = req.URL.Host
request.go#L1343: if r.URL != nil {
request.go#L1345: newValues, e = url.ParseQuery(r.URL.RawQuery)
response.go#L142: if r.Request != nil && r.Request.URL != nil {
response.go#L143: return r.Request.URL.Parse(lv)
servemux121.go#L111: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
servemux121.go#L115: return mux.handler(r.Host, r.URL.Path)
servemux121.go#L121: path := cleanPath(r.URL.Path)
servemux121.go#L125: if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok {
servemux121.go#L129: if path != r.URL.Path {
servemux121.go#L131: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
servemux121.go#L135: return mux.handler(host, r.URL.Path)
server.go#L2347: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2348: rp := strings.TrimPrefix(r.URL.RawPath, prefix)
server.go#L2349: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2352: r2.URL = new(url.URL)
server.go#L2353: *r2.URL = *r.URL
server.go#L2354: r2.URL.Path = p
server.go#L2355: r2.URL.RawPath = rp
server.go#L2381: oldpath := r.URL.Path
server.go#L2662: host := r.URL.Host
server.go#L2663: escapedPath := r.URL.EscapedPath()
server.go#L2670: _, _, u := mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2686: n, matches, u = mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2696: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
server.go#L3317: if strings.Contains(r.URL.RawQuery, ";") {
server.go#L3320: r2.URL = new(url.URL)
server.go#L3321: *r2.URL = *r.URL
server.go#L3322: r2.URL.RawQuery = strings.ReplaceAll(r.URL.RawQuery, ";", "&")
transport.go#L500: return envProxyFunc()(req.URL)
transport.go#L544: if req.URL.Scheme == "https" && req.requiresHTTP1() {
transport.go#L562: return altProto[req.URL.Scheme]
transport.go#L587: if req.URL == nil {
transport.go#L595: scheme := req.URL.Scheme
transport.go#L632: if req.URL.Host == "" {
transport.go#L975: cm.targetScheme = treq.URL.Scheme
transport.go#L976: cm.targetAddr = canonicalAddr(treq.URL)
transport.go#L1847: URL: &url.URL{Opaque: cm.targetAddr},
net/http/httputil
dump.go#L99: if req.URL.Scheme == "https" {
dump.go#L102: reqSend.URL = new(url.URL)
dump.go#L103: *reqSend.URL = *req.URL
dump.go#L104: reqSend.URL.Scheme = "http"
dump.go#L240: reqURI = req.URL.RequestURI()
dump.go#L249: if host == "" && req.URL != nil {
dump.go#L250: host = req.URL.Host
reverseproxy.go#L271: req.URL.Scheme = target.Scheme
reverseproxy.go#L272: req.URL.Host = target.Host
reverseproxy.go#L273: req.URL.Path, req.URL.RawPath = joinURLPath(target, req.URL)
reverseproxy.go#L274: if targetQuery == "" || req.URL.RawQuery == "" {
reverseproxy.go#L275: req.URL.RawQuery = targetQuery + req.URL.RawQuery
reverseproxy.go#L277: req.URL.RawQuery = targetQuery + "&" + req.URL.RawQuery
reverseproxy.go#L389: outreq.URL.RawQuery = cleanQueryParams(outreq.URL.RawQuery)
reverseproxy.go#L427: outreq.URL.RawQuery = cleanQueryParams(outreq.URL.RawQuery)
net/http/pprof
pprof.go#L213: b = bufio.NewReader(strings.NewReader(r.URL.RawQuery))
pprof.go#L387: if name, found := strings.CutPrefix(r.URL.Path, "/debug/pprof/"); found {
golang.org/x/net/http2
server.go#L2325: URL: res.URL,
transport.go#L621: switch req.URL.Scheme {
transport.go#L632: addr := authorityAddr(req.URL.Scheme, req.URL.Host)
transport.go#L1633: URL: req.URL,
golang.org/x/net/trace
trace.go#L121: _, pat := http.DefaultServeMux.Handler(&http.Request{URL: &url.URL{Path: debugRequestsPath}})
google.golang.org/grpc/internal/resolver/delegatingresolver
delegatingresolver.go#L83: req := &http.Request{URL: &url.URL{
delegatingresolver.go#L215: req := &http.Request{URL: &url.URL{
google.golang.org/grpc/internal/transport
handler_server.go#L417: method: req.URL.Path,
proxy.go#L66: URL: &url.URL{Host: opts.ConnectAddr},