Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for StatusPartialContent (0.17 sec)

  1. cmd/server_test.go

    		// execute the HTTP request.
    		response, err = s.client.Do(request)
    		c.Assert(err, nil)
    		// Since only part of the object is requested, expecting response status to be http.StatusPartialContent .
    		c.Assert(response.StatusCode, http.StatusPartialContent)
    		// parse the HTTP response body.
    		getContent, err := io.ReadAll(response.Body)
    		c.Assert(err, nil)
    
    		// Compare putContent and getContent.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    			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)
    					if okSt && len(ci.Data) > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    			byteRange:  "bytes=10-100",
    			accessKey:  credentials.AccessKey,
    			secretKey:  credentials.SecretKey,
    
    			expectedContent:    bytesData[0].byteData[10:101],
    			expectedRespStatus: http.StatusPartialContent,
    		},
    		// Test case - 4.
    		// Test case with invalid range.
    		{
    			bucketName: bucketName,
    			objectName: objectName,
    			byteRange:  "bytes=-0",
    			accessKey:  credentials.AccessKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top