Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MethodGet (0.36 sec)

  1. cmd/server_test.go

    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	request, err = newTestSignedRequest(http.MethodGet, getGetObjectURL(s.endPoint, bucketName, "my-object-directory/"),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		rec := httptest.NewRecorder()
    		// construct HTTP request for Get Object end point.
    		req, err := newTestSignedRequestV4(http.MethodGet, getGetObjectURL("", testCase.bucketName, testCase.objectName),
    			0, nil, testCase.accessKey, testCase.secretKey, nil)
    		if err != nil {
    			t.Fatalf("Test %d: Failed to create HTTP request for Get Object: <ERROR> %v", i+1, err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		postfix string
    		method  string
    	}{
    		{"/simple?labelSelector=<invalid>", http.MethodGet},
    		{"/simple/foo?gracePeriodSeconds=<invalid>", http.MethodDelete},
    		// {"/simple?labelSelector=<value>", http.MethodDelete}, TODO: implement DeleteCollection in  SimpleRESTStorage
    		// {"/simple/foo?export=<invalid>", http.MethodGet}, TODO: there is no invalid bool in conversion. Should we be more strict?
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    		wantBody string
    	}{
    		{MethodGet, nil, "text/html; charset=utf-8", "<a href=\"/foo\">Found</a>.\n\n"},
    		{MethodHead, nil, "text/html; charset=utf-8", ""},
    		{MethodPost, nil, "", ""},
    		{MethodDelete, nil, "", ""},
    		{"foo", nil, "", ""},
    		{MethodGet, &ctHeader{[]string{"application/test"}}, "application/test", ""},
    		{MethodGet, &ctHeader{[]string{}}, "", ""},
    		{MethodGet, &ctHeader{nil}, "", ""},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  6. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  7. pkg/config/validation/validation.go

    		"deadline-exceeded",
    		"internal",
    		"resource-exhausted",
    		"unavailable",
    	)
    
    	// golang supported methods: https://golang.org/src/net/http/method.go
    	supportedMethods = sets.New(
    		http.MethodGet,
    		http.MethodHead,
    		http.MethodPost,
    		http.MethodPut,
    		http.MethodPatch,
    		http.MethodDelete,
    		http.MethodConnect,
    		http.MethodOptions,
    		http.MethodTrace,
    	)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    		GotConn: func(httptrace.GotConnInfo) {
    			// tr.getConn should leave it for the HTTP/2 alt to call GotConn.
    			t.Error("GotConn called")
    		},
    	})
    	req, _ := NewRequestWithContext(ctx, MethodGet, "https://example.com", nil)
    	_, err := tr.RoundTrip(req)
    	if err != errFakeRoundTrip {
    		t.Errorf("got error: %v; want %q", err, errFakeRoundTrip)
    	}
    	wantIdle("after round trip", 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. src/reflect/value.go

    		valueRet := add(valueFrame, valueABI.retOffset, "valueFrame's size > retOffset")
    		methodRet := add(methodFrame, methodABI.retOffset, "methodFrame's size > retOffset")
    		// This copies to the stack. Write barriers are not needed.
    		memmove(valueRet, methodRet, retSize)
    	}
    
    	// Tell the runtime it can now depend on the return values
    	// being properly initialized.
    	*retValid = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top