Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for StatusOK (0.17 sec)

  1. cmd/bucket-handlers_test.go

    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 2.
    		// Delete deleted objects with quiet flag off.
    		2: {
    			bucket:             bucketName,
    			objects:            successRequest0,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedContent:    encodedSuccessResponse0,
    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 3.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  2. 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)
  3. src/os/exec.go

    // reference was not dropped or status changed.
    func (p *Process) handlePersistentRelease(reason processStatus) processStatus {
    	if p.mode != modeHandle {
    		panic("handlePersistentRelease called in invalid mode")
    	}
    
    	for {
    		refs := p.state.Load()
    		status := processStatus(refs & processStatusMask)
    		if status != statusOK {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-handlers_test.go

    			expectedRespStatus: http.StatusOK,
    			lifecycleResponse:  []byte(``),
    			errorResponse:      APIErrorResponse{},
    			shouldPass:         true,
    		},
    		{
    			method:             http.MethodGet,
    			accessKey:          creds.AccessKey,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. cmd/api-response.go

    func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeJSON)
    }
    
    // writeSuccessResponseXML writes success headers and response if any,
    // with content-type set to `application/xml`.
    func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    // writeSuccessNoContent writes success headers with http status 204
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. cmd/s3-zip-handlers.go

    	// s3zip does not allow ranges.
    	w.Header().Del(xhttp.AcceptRanges)
    
    	// Set any additional requested response headers.
    	setHeadGetRespHeaders(w, r.Form)
    
    	// Successful response.
    	w.WriteHeader(http.StatusOK)
    }
    
    // Update the passed zip object metadata with the zip contents info, file name, modtime, size, etc.
    // The returned zip index will de decrypted.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top