Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for locationResponse (0.19 sec)

  1. cmd/bucket-handlers_test.go

    		}
    		if !bytes.Equal(testCase.locationResponse, rec.Body.Bytes()) && testCase.shouldPass {
    			t.Errorf("Test %d: %s: Expected the response to be `%s`, but instead found `%s`", i+1, instanceType, string(testCase.locationResponse), rec.Body.String())
    		}
    		errorResponse := APIErrorResponse{}
    		err = xml.Unmarshal(rec.Body.Bytes(), &errorResponse)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
  2. cmd/api-response.go

    	maxUploadsList = 10000 // Limit number of uploads in a listUploadsResponse.
    	maxPartsList   = 10000 // Limit number of parts in a listPartsResponse.
    )
    
    // LocationResponse - format for location response.
    type LocationResponse struct {
    	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint" json:"-"`
    	Location string   `xml:",chardata"`
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  3. cmd/bucket-handlers.go

    		return
    	}
    
    	// Generate response.
    	encodedSuccessResponse := encodeResponse(LocationResponse{})
    	// Get current region.
    	region := globalSite.Region
    	if region != globalMinioDefaultRegion {
    		encodedSuccessResponse = encodeResponse(LocationResponse{
    			Location: region,
    		})
    	}
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top