Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for xmlDecoder (0.05 sec)

  1. cmd/object-multipart-handlers.go

    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingPart), r.URL)
    		return
    	}
    
    	complMultipartUpload := &CompleteMultipartUpload{}
    	if err = xmlDecoder(r.Body, complMultipartUpload, r.ContentLength); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if len(complMultipartUpload.Parts) == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrEntityTooLarge), r.URL)
    		return
    	}
    
    	// Unmarshal list of keys to be deleted.
    	deleteObjectsReq := &DeleteObjectsRequest{}
    	if err := xmlDecoder(r.Body, deleteObjectsReq, maxBodySize); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	objects := make([]ObjectV, len(deleteObjectsReq.Objects))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    		apiRouter.ServeHTTP(rec, req)
    		if rec.Code != http.StatusOK {
    			t.Fatalf("Test failed to create HTTP request for copy %d", rec.Code)
    		}
    
    		resp := &CopyObjectPartResponse{}
    		if err = xmlDecoder(rec.Body, resp, rec.Result().ContentLength); err != nil {
    			t.Fatalf("Test failed to decode XML response: <ERROR> %v", err)
    		}
    
    		parts = append(parts, CompletePart{
    			PartNumber: partNumber,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top