Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 67 for RawQuery (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go

    	"net/url"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/endpoints/request"
    )
    
    func httpRequest(method, path, rawQuery string) *http.Request {
    	return &http.Request{
    		Method: method,
    		URL: &url.URL{
    			Path:     path,
    			RawQuery: rawQuery,
    		},
    	}
    }
    
    func newWatchIdentifier(apiGroup, resource, namespace, name string) *watchIdentifier {
    	return &watchIdentifier{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 14:02:51 UTC 2021
    - 10.4K bytes
    - Viewed (0)
  6. src/net/http/httputil/reverseproxy_test.go

    	for _, test := range []struct {
    		rawQuery   string
    		cleanQuery string
    	}{{
    		rawQuery:   "a=1&a=2;b=3",
    		cleanQuery: "a=1",
    	}, {
    		rawQuery:   "a=1&a=%zz&b=3",
    		cleanQuery: "a=1&b=3",
    	}} {
    		res, err := frontend.Client().Get(frontend.URL + "?" + test.rawQuery)
    		if err != nil {
    			t.Fatalf("Get: %v", err)
    		}
    		defer res.Body.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. cmd/auth-handler_test.go

    		},
    		// Test case - 4
    		// Check for presigned.
    		{
    			req: &http.Request{
    				URL: &url.URL{
    					Host:     "127.0.0.1:9000",
    					Scheme:   httpScheme,
    					Path:     SlashSeparator,
    					RawQuery: "X-Amz-Credential=EXAMPLEINVALIDEXAMPL%2Fs3%2F20160314%2Fus-east-1",
    				},
    			},
    			authT: authTypePresigned,
    		},
    		// Test case - 5
    		// Check for post policy.
    		{
    			req: &http.Request{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	// Note: Keep this code after tryUpgrade to not break that flow.
    	if len(path) == 0 && (method == http.MethodGet || method == http.MethodHead) {
    		var queryPart string
    		if len(req.URL.RawQuery) > 0 {
    			queryPart = "?" + req.URL.RawQuery
    		}
    		w.Header().Set("Location", req.URL.Path+"/"+queryPart)
    		w.WriteHeader(http.StatusMovedPermanently)
    		redirect = true
    	}
    	return redirect
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top