net/http.Request.URL (field)

260 uses

	net/http (current package)
		client.go#L171: 		for _, cookie := range c.Jar.Cookies(req.URL) {
		client.go#L181: 			c.Jar.SetCookies(req.URL, rc)
		client.go#L211: 	if req.URL == nil {
		client.go#L238: 	if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
		client.go#L594: 	if req.URL == nil {
		client.go#L620: 			urlStr = stripPassword(resp.Request.URL)
		client.go#L622: 			urlStr = stripPassword(req.URL)
		client.go#L639: 			u, err := req.URL.Parse(loc)
		client.go#L645: 			if req.Host != "" && req.Host != req.URL.Host {
		client.go#L657: 				URL:      u,
		client.go#L680: 			if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL); ref != "" {
		client.go#L795: 			if shouldCopyHeaderOnRedirect(k, preq.URL, req.URL) {
		fs.go#L592: 	if strings.HasSuffix(r.URL.Path, indexPage) {
		fs.go#L615: 		url := r.URL.Path
		fs.go#L630: 		url := r.URL.Path
		fs.go#L686: 	if q := r.URL.RawQuery; q != "" {
		fs.go#L715: 	if containsDotDot(r.URL.Path) {
		fs.go#L843: 	upath := r.URL.Path
		fs.go#L846: 		r.URL.Path = upath
		h2_bundle.go#L5673: 		URL:        url_,
		h2_bundle.go#L6968: 	if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) {
		h2_bundle.go#L6972: 	addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
		h2_bundle.go#L7978: 		host = req.URL.Host
		h2_bundle.go#L7987: 		path = req.URL.RequestURI()
		h2_bundle.go#L7990: 			path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)
		h2_bundle.go#L7992: 				if req.URL.Opaque != "" {
		h2_bundle.go#L7993: 					return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque)
		h2_bundle.go#L8029: 			f(":scheme", req.URL.Scheme)
		request.go#L123: 	URL *url.URL
		request.go#L361: 	r2.URL = cloneURL(r.URL) // legacy behavior; TODO: try to remove. Issue 23544
		request.go#L378: 	r2.URL = cloneURL(r.URL)
		request.go#L496: 	return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
		request.go#L572: 		if r.URL == nil {
		request.go#L575: 		host = cleanHost(r.URL.Host)
		request.go#L583: 	ruri := r.URL.RequestURI()
		request.go#L584: 	if usingProxy && r.URL.Scheme != "" && r.URL.Opaque == "" {
		request.go#L585: 		ruri = r.URL.Scheme + "://" + host + ruri
		request.go#L586: 	} else if r.Method == "CONNECT" && r.URL.Path == "" {
		request.go#L589: 		if r.URL.Opaque != "" {
		request.go#L590: 			ruri = r.URL.Opaque
		request.go#L879: 		URL:        u,
		request.go#L1064: 	if req.URL, err = url.ParseRequestURI(rawurl); err != nil {
		request.go#L1070: 		req.URL.Scheme = ""
		request.go#L1087: 	req.Host = req.URL.Host
		request.go#L1267: 		if r.URL != nil {
		request.go#L1269: 			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)
		server.go#L2103: 		p := strings.TrimPrefix(r.URL.Path, prefix)
		server.go#L2104: 		rp := strings.TrimPrefix(r.URL.RawPath, prefix)
		server.go#L2105: 		if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
		server.go#L2108: 			r2.URL = new(url.URL)
		server.go#L2109: 			*r2.URL = *r.URL
		server.go#L2110: 			r2.URL.Path = p
		server.go#L2111: 			r2.URL.RawPath = rp
		server.go#L2137: 			oldpath := r.URL.Path
		server.go#L2390: 		if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
		server.go#L2394: 		return mux.handler(r.Host, r.URL.Path)
		server.go#L2400: 	path := cleanPath(r.URL.Path)
		server.go#L2404: 	if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok {
		server.go#L2408: 	if path != r.URL.Path {
		server.go#L2410: 		url := *r.URL
		server.go#L2415: 	return mux.handler(host, r.URL.Path)
		transport.go#L438: 	return envProxyFunc()(req.URL)
		transport.go#L480: 	if req.URL.Scheme == "https" && req.requiresHTTP1() {
		transport.go#L498: 	return altProto[req.URL.Scheme]
		transport.go#L507: 	if req.URL == nil {
		transport.go#L515: 	scheme := req.URL.Scheme
		transport.go#L554: 	if req.URL.Host == "" {
		transport.go#L827: 	cm.targetScheme = treq.URL.Scheme
		transport.go#L828: 	cm.targetAddr = canonicalAddr(treq.URL)
		transport.go#L1667: 			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#L145: 		req.URL.Scheme = target.Scheme
		reverseproxy.go#L146: 		req.URL.Host = target.Host
		reverseproxy.go#L147: 		req.URL.Path, req.URL.RawPath = joinURLPath(target, req.URL)
		reverseproxy.go#L148: 		if targetQuery == "" || req.URL.RawQuery == "" {
		reverseproxy.go#L149: 			req.URL.RawQuery = targetQuery + req.URL.RawQuery
		reverseproxy.go#L151: 			req.URL.RawQuery = targetQuery + "&" + req.URL.RawQuery

	cloud.google.com/go/logging
		logging.go#L666: 	u := *r.Request.URL

	cloud.google.com/go/storage
		reader.go#L148: 		req.URL.RawQuery = conditionsQuery(gen, o.conds)

	github.com/aws/aws-sdk-go/aws/request
		http_request.go#L12: 	req.URL = &url.URL{}
		http_request.go#L13: 	*req.URL = *r.URL
		request.go#L132: 	httpReq.URL, err = url.Parse(clientInfo.Endpoint + operation.HTTPPath)
		request.go#L134: 		httpReq.URL = &url.URL{}
		request.go#L372: 	return r.HTTPRequest.URL.String(), r.SignedHeaderVals, nil
		request.go#L631: 	if port != "" && isDefaultPort(r.URL.Scheme, port) {
		request.go#L642: 	if r.URL == nil {
		request.go#L646: 	return r.URL.Host

	github.com/aws/aws-sdk-go/aws/signer/v4
		v4.go#L323: 		Query:                  r.URL.Query(),
		v4.go#L390: 	ctx.Request.URL.RawQuery = ctx.Query.Encode()
		v4.go#L507: 		signedURLMsg = fmt.Sprintf(logSignedURLMsg, ctx.Request.URL.String())
		v4.go#L538: 		ctx.Request.URL.RawQuery += "&" + signatureQueryKey + "=" + ctx.signature
		v4.go#L569: 	if sig := r.URL.Query().Get("X-Amz-Signature"); len(sig) != 0 {
		v4.go#L642: 				headerValues[i] = "host:" + ctx.Request.URL.Host
		v4.go#L654: 	ctx.Request.URL.RawQuery = strings.Replace(ctx.Query.Encode(), "+", "%20", -1)
		v4.go#L656: 	uri := getURIPath(ctx.Request.URL)
		v4.go#L665: 		ctx.Request.URL.RawQuery,

	github.com/aws/aws-sdk-go/private/protocol
		host.go#L14: 		err := ValidateEndpointHost(r.Operation.Name, r.HTTPRequest.URL.Host)
		host_prefix.go#L50: 	r.HTTPRequest.URL.Host = prefix + r.HTTPRequest.URL.Host

	github.com/aws/aws-sdk-go/private/protocol/query
		build.go#L34: 		r.HTTPRequest.URL.RawQuery = body.Encode()

	github.com/aws/aws-sdk-go/private/protocol/rest
		build.go#L66: 	query := r.HTTPRequest.URL.Query()
		build.go#L71: 	r.HTTPRequest.URL.RawPath = r.HTTPRequest.URL.Path
		build.go#L114: 				err = buildURI(r.HTTPRequest.URL, m, name, field.Tag)
		build.go#L129: 	r.HTTPRequest.URL.RawQuery = query.Encode()
		build.go#L131: 		cleanPath(r.HTTPRequest.URL)

	github.com/evanw/esbuild/pkg/api
		serve_other.go#L92: 			Path:          req.URL.Path,
		serve_other.go#L118: 	if req.Method == "GET" && strings.HasPrefix(req.URL.Path, "/") {
		serve_other.go#L120: 		queryPath := path.Clean(req.URL.Path)[1:]
		serve_other.go#L211: 		if kind == fs.DirEntry && !strings.HasSuffix(req.URL.Path, "/") {
		serve_other.go#L212: 			res.Header().Set("Location", req.URL.Path+"/")

	github.com/go-git/go-git/v5/plumbing/transport/http
		common.go#L151: 	if !strings.HasSuffix(r.URL.Path, infoRefsPath) {
		common.go#L155: 	h, p, err := net.SplitHostPort(r.URL.Host)
		common.go#L157: 		h = r.URL.Host
		common.go#L167: 	s.endpoint.Protocol = r.URL.Scheme
		common.go#L168: 	s.endpoint.Path = r.URL.Path[:len(r.URL.Path)-len(infoRefsPath)]
		common.go#L279: 		e.Response.Request.URL, e.Response.StatusCode,

	github.com/prometheus/client_golang/prometheus/promhttp
		instrument_server.go#L300: 	if r.URL != nil {
		instrument_server.go#L301: 		s += len(r.URL.String())

	go.opencensus.io/plugin/ochttp
		client.go#L70: 	if isHealthEndpoint(req.URL.Path) {
		client_stats.go#L39: 		tag.Upsert(KeyClientPath, req.URL.Path),
		client_stats.go#L40: 		tag.Upsert(Path, req.URL.Path),
		server.go#L96: 	if h.IsHealthEndpoint != nil && h.IsHealthEndpoint(r) || isHealthEndpoint(r.URL.Path) {
		server.go#L152: 		tag.Upsert(Path, r.URL.Path),
		trace.go#L150: 	return req.URL.Path
		trace.go#L158: 		trace.StringAttribute(PathAttribute, r.URL.Path),
		trace.go#L159: 		trace.StringAttribute(URLAttribute, r.URL.String()),

	golang.org/x/net/http2
		server.go#L2118: 		URL:        url_,
		transport.go#L465: 	if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) {
		transport.go#L469: 	addr := authorityAddr(req.URL.Scheme, req.URL.Host)
		transport.go#L1475: 		host = req.URL.Host
		transport.go#L1484: 		path = req.URL.RequestURI()
		transport.go#L1487: 			path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host)
		transport.go#L1489: 				if req.URL.Opaque != "" {
		transport.go#L1490: 					return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque)
		transport.go#L1526: 			f(":scheme", req.URL.Scheme)

	golang.org/x/net/trace
		trace.go#L121: 	_, pat := http.DefaultServeMux.Handler(&http.Request{URL: &url.URL{Path: debugRequestsPath}})

	golang.org/x/pkgsite/internal/cookie
		flash.go#L37: 		Path:    r.URL.Path,

	golang.org/x/pkgsite/internal/frontend
		badge.go#L24: 	path := strings.TrimPrefix(r.URL.Path, "/badge/")
		badge.go#L32: 	path = strings.TrimPrefix(r.URL.Query().Get("path"), "https://pkg.go.dev/")
		details.go#L32: 	if r.URL.Path == "/" {
		details.go#L36: 	if strings.HasPrefix(r.URL.Path, "/github.com/golang/go") {
		details.go#L37: 		urlPath := strings.TrimPrefix(strings.TrimPrefix(r.URL.Path, "/github.com/golang/go"), "/src")
		details.go#L45: 	if strings.HasSuffix(r.URL.Path, "/") {
		details.go#L46: 		http.Redirect(w, r, strings.TrimSuffix(r.URL.Path, "/"), http.StatusMovedPermanently)
		details.go#L57: 	urlInfo, err := extractURLPathInfo(r.URL.Path)
		fetch.go#L91: 	defer derrors.Wrap(&err, "serveFetch(%q)", r.URL.Path)
		fetch.go#L104: 	urlInfo, err := extractURLPathInfo(strings.TrimPrefix(r.URL.Path, "/fetch"))
		paginate.go#L89: 		baseURL: r.URL,
		playground.go#L38: 			req.URL.Scheme = pgURL.Scheme
		playground.go#L39: 			req.URL.Host = pgURL.Host
		playground.go#L40: 			req.URL.Path = strings.TrimPrefix(req.URL.Path, "/play")
		redirect.go#L19: 	urlPath := strings.TrimPrefix(r.URL.Path, "/pkg")
		redirect.go#L25: 	urlPath := strings.TrimPrefix(r.URL.Path, "/mod")
		server.go#L131: 		log.Infof(r.Context(), "Request made to %q", r.URL.Path)
		server.go#L196: 	return detailsTTLForPath(r.Context(), r.URL.Path, r.FormValue("tab"))
		tabs.go#L82: 		_, expandReadme := r.URL.Query()["readme"]
		unit.go#L105: 		http.Redirect(w, r, r.URL.Path, http.StatusFound)
		unit.go#L153: 					r.URL.Path, um.ModulePath, info.requestedVersion, err)
		unit.go#L161: 		http.Redirect(w, r, r.URL.Path, http.StatusFound)

	golang.org/x/pkgsite/internal/middleware
		accept_requests.go#L19: 			if len(r.URL.String()) >= maxURILength {
		betaRedirect.go#L47: 			http.Redirect(w, r, betaPkgGoDevURL(r.URL).String(), http.StatusFound)
		caching.go#L142: 	key := r.URL.String()
		errorreporting.go#L44: 				Error: fmt.Errorf("handler for %q returned status code %d", r.URL.Path, w2.status),
		experiment.go#L104: 	exps = append(exps, r.URL.Query()[experimentQueryParamKey]...)
		iapheader.go#L23: 			if r.URL.Path != "/healthz" {
		requestlog.go#L34: 			msg.WriteString(entry.HTTPRequest.Request.URL.Path + " ")
		requestlog.go#L63: 	if r.Method == http.MethodGet && r.URL.Path == "/healthz" {

	golang.org/x/pkgsite/internal/worker
		server.go#L130: 		log.Infof(r.Context(), "Request made to %q", r.URL.Path)
		server.go#L272: 	if r.URL.Path == "/" {
		server.go#L280: 		log.Infof(r.Context(), "doFetch of %s returned %d; returning that code to retry task", r.URL.Path, code)
		server.go#L285: 		log.Infof(r.Context(), "doFetch of %s returned code %d; returning OK to avoid retry", r.URL.Path, code)
		server.go#L298: 	modulePath, requestedVersion, err := parseModulePathAndVersion(r.URL.Path)
		server.go#L366: 	defer derrors.Wrap(&err, "handlePollIndex(%q)", r.URL.Path)
		server.go#L405: 	defer derrors.Wrap(&err, "handleEnqueue(%q)", r.URL.Path)
		server.go#L575: 	modulePath, version, err := parseModulePathAndVersion(r.URL.Path)

	google.golang.org/api/googleapi/transport
		apikey.go#L40: 	args := newReq.URL.Query()
		apikey.go#L42: 	newReq.URL.RawQuery = args.Encode()

	google.golang.org/api/storage/v1
		storage-gen.go#L2462: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L2613: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L2782: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L2953: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L3116: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L3290: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L3471: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L3653: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L3859: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L4540: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L4780: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L5009: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L5182: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L5424: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L5748: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L5899: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6069: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6257: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6432: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6606: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6773: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L6924: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L7096: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L7269: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L7439: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L7614: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L7807: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L8002: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L8189: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L8387: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L8622: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L8965: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L9288: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L9524: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L9774: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L10104: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L10464: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L10783: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L11175: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L11478: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L11676: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L11939: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L12257: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L12468: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L12618: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L12756: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L12956: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L13153: 	googleapi.Expand(req.URL, map[string]string{
		storage-gen.go#L13328: 	googleapi.Expand(req.URL, map[string]string{

	google.golang.org/grpc
		proxy.go#L45: 		URL: &url.URL{
		proxy.go#L88: 		URL:    &url.URL{Host: backendAddr},

	google.golang.org/grpc/internal/transport
		handler_server.go#L361: 		method:         req.URL.Path,