Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 67 for RawQuery (1 sec)

  1. cmd/sts-handlers.go

    		ctypeOk := wildcard.MatchSimple("application/x-www-form-urlencoded*", r.Header.Get(xhttp.ContentType))
    		authOk := wildcard.MatchSimple(signV4Algorithm+"*", r.Header.Get(xhttp.Authorization))
    		noQueries := len(r.URL.RawQuery) == 0
    		return ctypeOk && authOk && noQueries
    	}).HandlerFunc(httpTraceAll(sts.AssumeRole))
    
    	// Assume roles with JWT handler, handles both ClientGrants and WebIdentity.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go

    				return "WATCH"
    			}
    		}
    	}
    	return ""
    }
    
    func cleanDryRun(u *url.URL) string {
    	// avoid allocating when we don't see dryRun in the query
    	if !strings.Contains(u.RawQuery, "dryRun") {
    		return ""
    	}
    	dryRun := u.Query()["dryRun"]
    	if errs := validation.ValidateDryRun(nil, dryRun); len(errs) > 0 {
    		return "invalid"
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 35K bytes
    - Viewed (0)
  3. src/net/http/server.go

    func AllowQuerySemicolons(h Handler) Handler {
    	return HandlerFunc(func(w ResponseWriter, r *Request) {
    		if strings.Contains(r.URL.RawQuery, ";") {
    			r2 := new(Request)
    			*r2 = *r
    			r2.URL = new(url.URL)
    			*r2.URL = *r.URL
    			r2.URL.RawQuery = strings.ReplaceAll(r.URL.RawQuery, ";", "&")
    			h.ServeHTTP(w, r2)
    		} else {
    			h.ServeHTTP(w, r)
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  4. tests/integration/telemetry/api/stats_test.go

    		promQL := fmt.Sprintf(`count(sum by(le) (rate(istio_request_duration_milliseconds_bucket{source_app="%s",reporter="%s",response_code="200"}[24h])))`,
    			sourceApp, reporter)
    		v, err := prom.RawQuery(cluster, promQL)
    		if err != nil {
    			return err
    		}
    		totalBuckets, err := prometheus.Sum(v)
    		if err != nil {
    			return err
    		}
    		if int(totalBuckets) != expectedBuckets {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    		if bucket == "" {
    			h.ServeHTTP(w, r)
    			return
    		}
    
    		// MakeBucket requests should be handled at current endpoint
    		if r.Method == http.MethodPut && bucket != "" && object == "" && r.URL.RawQuery == "" {
    			h.ServeHTTP(w, r)
    			return
    		}
    
    		// CopyObject requests should be handled at current endpoint as path style
    		// requests have target bucket and object in URI and source details are in
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    				duration = time.Duration(us) * time.Second
    			}
    		}
    	}
    	if timeout <= 0 {
    		if duration > 0 {
    			timeout = duration + duration/2
    		} else {
    			timeout = 60 * time.Second
    		}
    	}
    	u.RawQuery = values.Encode()
    	return u.String(), timeout
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. cmd/auth-handler.go

    	authTypeStreamingUnsignedTrailer
    )
    
    // Get request authentication type.
    func getRequestAuthType(r *http.Request) (at authType) {
    	if r.URL != nil {
    		var err error
    		r.Form, err = url.ParseQuery(r.URL.RawQuery)
    		if err != nil {
    			authNLogIf(r.Context(), err)
    			return authTypeUnknown
    		}
    	}
    	if isRequestSignatureV2(r) {
    		return authTypeSignedV2
    	} else if isRequestPresignedSignatureV2(r) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. src/net/http/requestwrite_test.go

    			"Host: \r\n" +
    			"User-Agent: Go-http-client/1.1\r\n" +
    			"X-Foo: X-Bar\r\n\r\n",
    	},
    
    	25: {
    		Req: Request{
    			Method: "GET",
    			URL: &url.URL{
    				Host:     "www.example.com",
    				RawQuery: "new\nline", // or any CTL
    			},
    		},
    		WantError: errors.New("net/http: can't write control character in Request.URL"),
    	},
    
    	26: { // Request with nil body and PATCH method. Issue #40978
    		Req: Request{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 23.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		u, err := url.Parse(server.URL + "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/namespaces/default/simple/id")
    		if err != nil {
    			t.Fatal(err)
    		}
    		u.RawQuery = test.params.Encode()
    		req := &http.Request{Method: "GET", URL: u}
    		req.Header = http.Header{}
    		req.Header.Set("Accept", test.accept)
    		req.Header.Set("User-Agent", test.userAgent)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  10. src/net/http/request.go

    	//
    	// For server requests, the URL is parsed from the URI
    	// supplied on the Request-Line as stored in RequestURI.  For
    	// most requests, fields other than Path and RawQuery will be
    	// empty. (See RFC 7230, Section 5.3)
    	//
    	// For client requests, the URL's Host specifies the server to
    	// connect to, while the Request's Host field optionally
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top