net/http.Request.URL (field)
95 uses
net/http (current package)
client.go#L175: cookieURL := req.URL
client.go#L224: if req.URL == nil {
client.go#L251: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L601: if req.URL == nil {
client.go#L629: urlStr = stripPassword(resp.Request.URL)
client.go#L631: urlStr = stripPassword(req.URL)
client.go#L650: u, err := req.URL.Parse(loc)
client.go#L656: if req.Host != "" && req.Host != req.URL.Host {
client.go#L668: URL: u,
client.go#L688: if !stripSensitiveHeaders && reqs[0].URL.Host != req.URL.Host {
client.go#L689: if !shouldCopyHeaderOnRedirect(reqs[0].URL, req.URL) {
client.go#L696: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
clientconn.go#L136: URL: &url.URL{
clientconn.go#L215: if req.URL == nil {
clientconn.go#L232: if req.URL.Host == "" {
fs.go#L686: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L709: url := r.URL.Path
fs.go#L729: url := r.URL.Path
fs.go#L787: if q := r.URL.RawQuery; q != "" {
fs.go#L816: if containsDotDot(r.URL.Path) {
fs.go#L850: if containsDotDot(r.URL.Path) {
fs.go#L990: upath := r.URL.Path
fs.go#L993: r.URL.Path = upath
h2_bundle.go#L6387: URL: res.URL,
h2_bundle.go#L7974: switch req.URL.Scheme {
h2_bundle.go#L7985: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L9039: URL: req.URL,
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#L2359: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2360: rp := strings.TrimPrefix(r.URL.RawPath, prefix)
server.go#L2361: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2364: r2.URL = new(url.URL)
server.go#L2365: *r2.URL = *r.URL
server.go#L2366: r2.URL.Path = p
server.go#L2367: r2.URL.RawPath = rp
server.go#L2395: oldpath := r.URL.EscapedPath()
server.go#L2681: host := r.URL.Host
server.go#L2682: escapedPath := r.URL.EscapedPath()
server.go#L2689: _, _, u := mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2705: n, matches, u = mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2715: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
server.go#L3347: if strings.Contains(r.URL.RawQuery, ";") {
server.go#L3350: r2.URL = new(url.URL)
server.go#L3351: *r2.URL = *r.URL
server.go#L3352: r2.URL.RawQuery = strings.ReplaceAll(r.URL.RawQuery, ";", "&")
transport.go#L508: return envProxyFunc()(req.URL)
transport.go#L552: if req.URL.Scheme == "https" && req.requiresHTTP1() {
transport.go#L570: return altProto[req.URL.Scheme]
transport.go#L595: if req.URL == nil {
transport.go#L603: scheme := req.URL.Scheme
transport.go#L640: if req.URL.Host == "" {
transport.go#L985: cm.targetScheme = treq.URL.Scheme
transport.go#L986: cm.targetAddr = canonicalAddr(treq.URL)
transport.go#L1882: URL: &url.URL{Opaque: cm.targetAddr},
github.com/coder/websocket
dial.go#L91: switch req.URL.Scheme {
dial.go#L93: req.URL.Scheme = "http"
dial.go#L95: req.URL.Scheme = "https"
 |
The pages are generated with Golds v0.8.5. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |