Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for StatusOK (0.13 sec)

  1. cmd/test-utils_test.go

    		if err != nil {
    			t.Fatalf("Unexpected err: %#v", err)
    		}
    		rec := httptest.NewRecorder()
    		apiRouter.ServeHTTP(rec, req)
    		checkRespErr(rec, http.StatusOK)
    	} else {
    		// Multipart upload - each part is a new DummyDataGen
    		// (so the part lengths are required to verify the
    		// object when reading).
    
    		// Initiate mp upload
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  2. internal/logger/target/http/http.go

    		return fmt.Errorf("%s returned '%w', please check your endpoint configuration", h.Endpoint(), err)
    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    					APIName:   "PostPolicyBucket",
    					Bucket:    eventArgsList[i].Object.Bucket,
    					Object:    eventArgsList[i].Object.Name,
    					VersionID: eventArgsList[i].Object.VersionID,
    					Status:    http.StatusText(http.StatusOK),
    				})
    			}
    		}
    
    		return
    	}
    
    	if formValues.Get(postPolicyBucketTagging) != "" {
    		tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging)))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  4. 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)
  5. cmd/update.go

    			Message:    fmt.Sprintf("No response from server to download URL %s", u),
    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode != http.StatusOK {
    		return content, AdminError{
    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("Error downloading URL %s. Response: %v", u, resp.Status),
    			StatusCode: resp.StatusCode,
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. cmd/batch-expire.go

    	}
    
    	clnt := http.Client{Transport: getRemoteInstanceTransport()}
    	resp, err := clnt.Do(req)
    	if err != nil {
    		return err
    	}
    
    	xhttp.DrainBody(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return nil
    }
    
    // Expire expires object versions which have already matched supplied filter conditions
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 13:50:53 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    		Transport: tr,
    		Timeout:   timeout + 5*time.Second,
    	}
    	resp, err := client.Get(source)
    	if err != nil {
    		return nil, fmt.Errorf("http fetch: %v", err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		defer resp.Body.Close()
    		return nil, statusCodeError(resp)
    	}
    
    	return resp.Body, nil
    }
    
    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
    - 19K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/server_test.go

    	for _, url := range []string{"http://" + s.httpAddr, "https://" + s.httpsAddr} {
    		resp, err := c.Get(url + "/ready")
    		g.Expect(err).ToNot(HaveOccurred())
    		g.Expect(resp.StatusCode).To(Equal(http.StatusOK))
    		g.Expect(resp.Body.Close()).To(Succeed())
    	}
    }
    
    func TestInitOIDC(t *testing.T) {
    	tests := []struct {
    		name      string
    		expectErr bool
    		jwtRule   string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top