Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for StatusOK (0.25 sec)

  1. src/cmd/pprof/pprof.go

    			TLSClientConfig:       tlsConfig,
    		},
    	}
    	resp, err := client.Get(source)
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, statusCodeError(resp)
    	}
    	return profile.Parse(resp.Body)
    }
    
    func statusCodeError(resp *http.Response) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/symbolizer/symbolizer.go

    	resp, err := client.Post(source, "application/octet-stream", strings.NewReader(post))
    	if err != nil {
    		return nil, fmt.Errorf("http post %s: %v", source, err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("http post %s: %v", source, statusCodeError(resp))
    	}
    	return io.ReadAll(resp.Body)
    }
    
    func statusCodeError(resp *http.Response) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. security/pkg/k8s/chiron/utils_test.go

    		t.Logf("request: %+v", *req)
    		switch req.URL.Path {
    		default:
    			t.Logf("The request contains path: %v", req.URL)
    			resp.WriteHeader(http.StatusOK)
    		}
    	})
    
    	server.httpServer = httptest.NewTLSServer(handler)
    
    	t.Logf("Serving TLS at: %v", server.httpServer.URL)
    
    	return server
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. pkg/spiffe/spiffe.go

    				errMsg = fmt.Sprintf("Calling %s failed with error: %v", endpoint, err)
    			} else if resp == nil {
    				errMsg = fmt.Sprintf("Calling %s failed with nil response", endpoint)
    			} else if resp.StatusCode != http.StatusOK {
    				b := make([]byte, 1024)
    				n, _ := resp.Body.Read(b)
    				errMsg = fmt.Sprintf("Calling %s failed with unexpected status: %v, fetching bundle: %s",
    					endpoint, resp.StatusCode, string(b[:n]))
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/net/http/fs_test.go

    	testFileLen = 11
    )
    
    type wantRange struct {
    	start, end int64 // range [start,end)
    }
    
    var ServeFileRangeTests = []struct {
    	r      string
    	code   int
    	ranges []wantRange
    }{
    	{r: "", code: StatusOK},
    	{r: "bytes=0-4", code: StatusPartialContent, ranges: []wantRange{{0, 5}}},
    	{r: "bytes=2-", code: StatusPartialContent, ranges: []wantRange{{2, testFileLen}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  6. tests/integration/security/authz_test.go

    					}
    
    					for _, c := range cases {
    						c := c
    						testName := fmt.Sprintf("%s(%s)/http", c.host, c.allow)
    						t.NewSubTest(testName).Run(func(t framework.TestContext) {
    							wantCode := http.StatusOK
    							if !c.allow {
    								wantCode = http.StatusForbidden
    							}
    
    							opts := echo.CallOptions{
    								Port: echo.Port{
    									Protocol: protocol.HTTP,
    								},
    								HTTP: echo.HTTP{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  7. src/net/http/httputil/reverseproxy_test.go

    			// closenotify case should be instantaneous.
    			t.Error("Handler never saw CloseNotify")
    			return
    		case <-w.(http.CloseNotifier).CloseNotify():
    		}
    
    		w.WriteHeader(http.StatusOK)
    		w.Write([]byte(backendResponse))
    	}))
    
    	defer backend.Close()
    
    	backend.Config.ErrorLog = log.New(io.Discard, "", 0)
    
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  8. cmd/bucket-policy-handlers_test.go

    		{
    			bucketName:           bucketName,
    			accessKey:            credentials.AccessKey,
    			secretKey:            credentials.SecretKey,
    			expectedBucketPolicy: bucketPolicyTemplate,
    			expectedRespStatus:   http.StatusOK,
    		},
    		// Test case - 2.
    		// Case with non-existent bucket name.
    		{
    			bucketName:           "non-existent-bucket",
    			accessKey:            credentials.AccessKey,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server_test.go

    	resp, err := http.Get(httpURL)
    	if err != nil {
    		t.Fatalf("Got error GETing: %v", err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("expected status code %d, got %d", http.StatusOK, resp.StatusCode)
    	}
    	body, readErr := io.ReadAll(resp.Body)
    	if readErr != nil {
    		// copying the response body did not work
    		t.Fatalf("Cannot copy resp: %#v", readErr)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  10. 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)
Back to top