Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for RawQuery (0.15 sec)

  1. src/net/http/servemux121.go

    		return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
    	}
    
    	if path != r.URL.Path {
    		_, pattern = mux.handler(host, path)
    		u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
    		return RedirectHandler(u.String(), StatusMovedPermanently), pattern
    	}
    
    	return mux.handler(host, r.URL.Path)
    }
    
    // handler is the main implementation of findHandler.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/webhook/validation.go

    		}
    		if len(u.Fragment) != 0 {
    			allErrors = append(allErrors, field.Invalid(fldPath, u.Fragment, "fragments are not permitted in the URL"))
    		}
    		if len(u.RawQuery) != 0 {
    			allErrors = append(allErrors, field.Invalid(fldPath, u.RawQuery, "query parameters are not permitted in the URL"))
    		}
    	}
    	return allErrors
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 19 23:14:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. internal/handlers/forwarder.go

    	outReq.URL.Scheme = target.Scheme
    	outReq.URL.Host = target.Host
    
    	u := f.getURLFromRequest(outReq)
    
    	outReq.URL.Path = u.Path
    	outReq.URL.RawPath = u.RawPath
    	outReq.URL.RawQuery = u.RawQuery
    	outReq.RequestURI = "" // Outgoing request should not have RequestURI
    
    	// Do not pass client Host header unless requested.
    	if !f.PassHost {
    		outReq.Host = target.Host
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go

    	for i, cfg := range configs {
    		dst, changed := cfg.config.makeURL(u)
    		if !changed {
    			lastMatch = i
    		}
    		// Use a relative URL to work in presence of stripping/redirects in webui.go.
    		rel := &url.URL{RawQuery: dst.RawQuery, ForceQuery: true}
    		result[i] = configMenuEntry{
    			Name:       cfg.Name,
    			URL:        rel.String(),
    			UserConfig: (i != 0),
    		}
    	}
    	// Mark the last matching config as current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. cmd/http-tracer.go

    			HTTP: &madmin.TraceHTTPStats{
    				ReqInfo: madmin.TraceRequestInfo{
    					Time:     reqStartTime,
    					Proto:    r.Proto,
    					Method:   r.Method,
    					RawQuery: redactLDAPPwd(r.URL.RawQuery),
    					Client:   handlers.GetSourceIP(r),
    					Headers:  reqHeaders,
    					Path:     reqPath,
    					Body:     reqRecorder.Data(),
    				},
    				RespInfo: madmin.TraceResponseInfo{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. pkg/test/framework/components/prometheus/kube.go

    	return c.api[c.clusters.Default().Name()]
    }
    
    func (c *kubeComponent) APIForCluster(cluster cluster.Cluster) prometheusApiV1.API {
    	return c.api[cluster.Name()]
    }
    
    func (c *kubeComponent) RawQuery(cluster cluster.Cluster, promQL string) (model.Value, error) {
    	scopes.Framework.Debugf("Query running: %s", promQL)
    
    	v, _, err := c.api[cluster.Name()].Query(context.Background(), promQL, time.Now())
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/prometheus/prometheus.go

    type Instance interface {
    	resource.Resource
    
    	// API Returns the core Prometheus APIs.
    	API() v1.API
    	APIForCluster(cluster cluster.Cluster) v1.API
    
    	// Query run the provided PromQL against the given cluster
    	RawQuery(cluster cluster.Cluster, promQL string) (prom.Value, error)
    
    	// Query Run the provided query against the given cluster
    	Query(cluster cluster.Cluster, query Query) (prom.Value, error)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 02 02:57:50 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/net/url/example_test.go

    func ExampleURL() {
    	u, err := url.Parse("http://bing.com/search?q=dotnet")
    	if err != nil {
    		log.Fatal(err)
    	}
    	u.Scheme = "https"
    	u.Host = "google.com"
    	q := u.Query()
    	q.Set("q", "golang")
    	u.RawQuery = q.Encode()
    	fmt.Println(u)
    	// Output: https://google.com/search?q=golang
    }
    
    func ExampleURL_roundtrip() {
    	// Parse + String preserve the original encoding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.2K bytes
    - Viewed (0)
  9. pkg/test/echo/server/forwarder/dns.go

    }
    
    func parseRequest(inputURL string) (dnsRequest, error) {
    	req := dnsRequest{}
    	u, err := url.Parse(inputURL)
    	if err != nil {
    		return req, err
    	}
    	qp, err := url.ParseQuery(u.RawQuery)
    	if err != nil {
    		return req, err
    	}
    	req.protocol = qp.Get("protocol")
    	if err := checkIn(req.protocol, "", "udp", "tcp"); err != nil {
    		return req, err
    	}
    	req.dnsServer = qp.Get("server")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/symbolz/symbolz.go

    		if strings.Contains(url.Path, "/debug/pprof/") || hasGperftoolsSuffix(url.Path) {
    			url.Path = path.Clean(url.Path + "/../symbol")
    		} else {
    			url.Path = "/symbolz"
    		}
    		url.RawQuery = ""
    		return url.String()
    	}
    
    	return ""
    }
    
    // symbolizeMapping symbolizes locations belonging to a Mapping by querying
    // a symbolz handler. An offset is applied to all addresses to take care of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 15:18:01 UTC 2019
    - 5.4K bytes
    - Viewed (0)
Back to top