Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for MethodGet (0.04 sec)

  1. cmd/signature-v4_test.go

    		query := url.Values{}
    		for key, value := range testCase.queryParams {
    			query.Set(key, value)
    		}
    
    		// Create a request to use.
    		req, e := http.NewRequest(http.MethodGet, "http://host/a/b?"+query.Encode(), nil)
    		if e != nil {
    			t.Errorf("(%d) failed to create http.Request, got %v", i, e)
    		}
    
    		// Do the same for the headers.
    		for key, value := range testCase.headers {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    		return "", fmt.Errorf("url parse err: %v", err)
    	}
    
    	// Start the user auth flow. This page would present the login with
    	// email or LDAP option.
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil)
    	if err != nil {
    		return "", fmt.Errorf("new request err: %v", err)
    	}
    	_, err = dexClient.Do(req)
    	// fmt.Printf("Do: %#v %#v\n", resp, err)
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 33K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    //	If-None-Match
    func checkPreconditions(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
    	// Return false for methods other than GET and HEAD.
    	if r.Method != http.MethodGet && r.Method != http.MethodHead {
    		return false
    	}
    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Jul 23 12:36:06 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  4. cmd/encryption-v1_test.go

    		request: &http.Request{Header: http.Header{}},
    		expErr:  errEncryptedObject,
    	},
    	{
    		info:    ObjectInfo{Size: 100, UserDefined: map[string]string{}},
    		request: &http.Request{Method: http.MethodGet, Header: http.Header{xhttp.AmzServerSideEncryptionCustomerAlgorithm: []string{xhttp.AmzEncryptionAES}}},
    		expErr:  errInvalidEncryptionParameters,
    	},
    	{
    		info:    ObjectInfo{Size: 100, UserDefined: map[string]string{}},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  5. cmd/storage-rest-client.go

    	if values == nil {
    		values = make(url.Values)
    	}
    	values.Set(storageRESTDiskID, *client.diskID.Load())
    	respBody, err := client.restClient.CallWithHTTPMethod(ctx, http.MethodGet, rpcMethod, values, body, length)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    	return respBody, nil
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  6. cmd/encryption-v1.go

    		return false, nil
    	}
    	if r == nil {
    		return false, errInvalidArgument
    	}
    
    	headers := r.Header
    
    	// disallow X-Amz-Server-Side-Encryption header on HEAD and GET
    	switch r.Method {
    	case http.MethodGet, http.MethodHead:
    		if crypto.S3.IsRequested(headers) || crypto.S3KMS.IsRequested(headers) {
    			return false, errInvalidEncryptionParameters
    		}
    	}
    
    	_, encrypted = crypto.IsEncrypted(info.UserDefined)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 38K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    func getKubernetesInfo(dctx context.Context) madmin.KubernetesInfo {
    	ctx, cancel := context.WithCancel(dctx)
    	defer cancel()
    
    	ki := madmin.KubernetesInfo{}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, kubernetesVersionEndpoint, nil)
    	if err != nil {
    		ki.Error = err.Error()
    		return ki
    	}
    
    	client := &http.Client{
    		Transport: globalRemoteTargetTransport,
    		Timeout:   10 * time.Second,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 99.7K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    	reqURL := &url.URL{
    		Scheme: epURL.Scheme,
    		Host:   epURL.Host,
    		Path:   healthCheckPathPrefix + healthCheckReadinessPath,
    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), nil)
    	if err != nil {
    		return err
    	}
    
    	client := &http.Client{
    		Transport: globalRemoteTargetTransport,
    		Timeout:   10 * time.Second,
    	}
    
    	resp, err := client.Do(req)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 118.2K bytes
    - Viewed (0)
Back to top