Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for StatusOK (0.12 sec)

  1. cmd/server_test.go

    	c.Assert(response.StatusCode, http.StatusOK)
    
    	request, err = newTestSignedRequest(http.MethodHead, getHeadObjectURL(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)
    
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    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. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		// TODO: JTL: "GET root item":       {"GET", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/simpleroots/bar", http.StatusOK},
    		"GET namespaced": {"GET", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/namespaces/ns/simples", http.StatusOK},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    	// Call the ServeHTTP to executes the registered handler.
    	apiRouter.ServeHTTP(rec, req)
    	// Assert the response code with the expected status.
    	if rec.Code != http.StatusOK {
    		t.Fatalf("%s:  Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code)
    	}
    
    	// decode the response body.
    	decoder := xml.NewDecoder(rec.Body)
    	multipartResponse := &InitiateMultipartUploadResponse{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  4. tests/integration/pilot/common/routing.go

    			port:           ports.HTTP,
    			code:           http.StatusOK,
    		},
    		{
    			name:     "wildcard IP with wildcard sidecar",
    			endpoint: "0.0.0.0",
    			port:     ports.HTTP,
    			code:     http.StatusOK,
    		},
    		{
    			name:     "wildcard IP with localhost sidecar",
    			endpoint: "127.0.0.1",
    			port:     ports.HTTP,
    			code:     http.StatusOK,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    				return
    			}
    
    			okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent ||
    				ci.StatusCode == http.StatusPreconditionFailed || ci.StatusCode == http.StatusNotModified)
    			if okSt {
    				ci.WriteHeaders(w, func() {
    					// set common headers
    					setCommonHeaders(w)
    				}, func() {
    					okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  6. src/net/http/server.go

    	// their value to nil.
    	Header() Header
    
    	// Write writes the data to the connection as part of an HTTP reply.
    	//
    	// If [ResponseWriter.WriteHeader] has not yet been called, Write calls
    	// WriteHeader(http.StatusOK) before writing the data. If the Header
    	// does not contain a Content-Type line, Write adds a Content-Type set
    	// to the result of passing the initial 512 bytes of written data to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    	c := ts.Client()
    
    	res, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusOK {
    		t.Errorf("got res.StatusCode %d, want %v", res.StatusCode, StatusOK)
    	}
    }
    
    // https://golang.org/issues/22084
    func TestTimeoutHandlerPanicRecovery(t *testing.T) {
    	wrapper := func(h Handler) Handler {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. pkg/controller/podautoscaler/horizontal_test.go

    func statusOkWithOverrides(overrides ...autoscalingv2.HorizontalPodAutoscalerCondition) []autoscalingv2.HorizontalPodAutoscalerCondition {
    	resv2 := make([]autoscalingv2.HorizontalPodAutoscalerCondition, len(statusOk))
    	copy(resv2, statusOk)
    	for _, override := range overrides {
    		resv2 = setConditionInList(resv2, override.Type, override.Status, override.Reason, override.Message)
    	}
    
    	// copy to a v1 slice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    						return
    					}
    					clientConn, _, err := hijacker.Hijack()
    					if err != nil {
    						t.Errorf("hijacking failed")
    						return
    					}
    					res := &Response{
    						StatusCode: StatusOK,
    						Proto:      "HTTP/1.1",
    						ProtoMajor: 1,
    						ProtoMinor: 1,
    						Header:     make(Header),
    					}
    
    					targetConn, err := net.Dial("tcp", r.URL.Host)
    					if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    				adminLogIf(ctx, err)
    			}
    		}
    		totalRx += n
    		if err != nil || ctx.Err() != nil || totalRx > 100*humanize.GiByte {
    			break
    		}
    
    	}
    	w.WriteHeader(http.StatusOK)
    }
    
    // NetperfHandler - perform mesh style network throughput test
    func (a adminAPIHandlers) NetperfHandler(w http.ResponseWriter, r *http.Request) {
    	ctx, cancel := context.WithCancel(r.Context())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top