Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 67 for RawQuery (0.56 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    	}
    	if u.User != nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, issuerURL, "URL must not contain a username or password"))
    	}
    	if len(u.RawQuery) > 0 {
    		allErrs = append(allErrs, field.Invalid(fldPath, issuerURL, "URL must not contain a query"))
    	}
    	if len(u.Fragment) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. pkg/istio-agent/xds_proxy.go

    			return nil, nil
    		}
    	}
    }
    
    func (p *XdsProxy) makeTapHandler() func(w http.ResponseWriter, req *http.Request) {
    	return func(w http.ResponseWriter, req *http.Request) {
    		qp, err := url.ParseQuery(req.URL.RawQuery)
    		if err != nil {
    			w.WriteHeader(http.StatusBadRequest)
    			fmt.Fprintf(w, "%v\n", err)
    			return
    		}
    		typeURL := fmt.Sprintf("istio.io%s", req.URL.Path)
    		dr := discovery.DiscoveryRequest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. cmd/post-policy_test.go

    	if err != nil {
    		t.Error("Unexpected error: ", err)
    	}
    
    	v := redirectURL.Query()
    	v.Add("bucket", info.Bucket)
    	v.Add("key", info.Name)
    	v.Add("etag", "\""+info.ETag+"\"")
    	redirectURL.RawQuery = v.Encode()
    	expectedLocation := redirectURL.String()
    
    	// Check the new location url
    	if rec.Header().Get("Location") != expectedLocation {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. src/net/http/fs.go

    }
    
    // localRedirect gives a Moved Permanently response.
    // It does not convert relative paths to absolute paths like Redirect does.
    func localRedirect(w ResponseWriter, r *Request, newPath string) {
    	if q := r.URL.RawQuery; q != "" {
    		newPath += "?" + q
    	}
    	w.Header().Set("Location", newPath)
    	w.WriteHeader(StatusMovedPermanently)
    }
    
    // ServeFile replies to the request with the contents of the named
    // file or directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    	}
    }
    
    // checkQueryStringHandler checks if r.URL.RawQuery has the same value
    // as the URL excluding the scheme and the query string and sends 200
    // response code if it is, 500 otherwise.
    func checkQueryStringHandler(w ResponseWriter, r *Request) {
    	u := *r.URL
    	u.Scheme = "http"
    	u.Host = r.Host
    	u.RawQuery = ""
    	if "http://"+r.URL.RawQuery == u.String() {
    		w.WriteHeader(200)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. cmd/endpoint.go

    		// - Scheme field must contain "http" or "https"
    		// - All field should be empty except Host and Path.
    		if !((u.Scheme == "http" || u.Scheme == "https") &&
    			u.User == nil && u.Opaque == "" && !u.ForceQuery && u.RawQuery == "" && u.Fragment == "") {
    			return ep, fmt.Errorf("invalid URL endpoint format")
    		}
    
    		var port string
    		host, port, err = net.SplitHostPort(u.Host)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go

    			proxyURL, _ := url.Parse(proxyServer.URL)
    			proxyURL.Path = test.requestPath
    			paramValues := url.Values{}
    			for k, v := range test.requestParams {
    				paramValues[k] = []string{v}
    			}
    			proxyURL.RawQuery = paramValues.Encode()
    			var requestBody io.Reader
    			if test.requestBody != "" {
    				requestBody = bytes.NewBufferString(test.requestBody)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 39.4K bytes
    - Viewed (0)
  8. src/net/http/request_test.go

    // multi-part form when a URL containing a semicolon is provided.
    func TestParseMultipartFormSemicolonSeparator(t *testing.T) {
    	req := newTestMultipartRequest(t)
    	req.URL = &url.URL{RawQuery: "q=foo;q=bar"}
    	if err := req.ParseMultipartForm(25); err == nil {
    		t.Fatal("ParseMultipartForm expected error due to invalid semicolon, got nil")
    	}
    	defer req.MultipartForm.RemoveAll()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	}
    
    	owner := claims.AccessKey == globalActiveCred.AccessKey || claims.Subject == globalActiveCred.AccessKey
    	if !owner {
    		return errAuthentication
    	}
    
    	if claims.Audience != r.URL.RawQuery {
    		return errAuthentication
    	}
    
    	requestTimeStr := r.Header.Get("X-Minio-Time")
    	requestTime, err := time.Parse(time.RFC3339, requestTimeStr)
    	if err != nil {
    		return errMalformedAuth
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  10. pkg/controller/garbagecollector/garbagecollector_test.go

    	func() {
    		f.lock.Lock()
    		defer f.lock.Unlock()
    
    		f.actions = append(f.actions, fakeAction{method: request.Method, path: request.URL.Path, query: request.URL.RawQuery})
    		fakeResponse, ok := f.response[request.Method+request.URL.Path]
    		if !ok {
    			fakeResponse.statusCode = 200
    			fakeResponse.content = []byte(`{"apiVersion": "v1", "kind": "List"}`)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top