Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for StatusPartialContent (0.27 sec)

  1. internal/config/identity/openid/provider/keycloak.go

    	resp, err := k.client.Do(req)
    	if err != nil {
    		return User{}, err
    	}
    	defer resp.Body.Close()
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusPartialContent:
    		var u User
    		if err = json.NewDecoder(resp.Body).Decode(&u); err != nil {
    			return User{}, err
    		}
    		return u, nil
    	case http.StatusNotFound:
    		return User{
    			ID:      userid,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  2. cmd/object-lambda-handlers.go

    	"No Content":                      http.StatusNoContent,
    	"Reset Content":                   http.StatusResetContent,
    	"Partial Content":                 http.StatusPartialContent,
    	"Multi-Status":                    http.StatusMultiStatus,
    	"Already Reported":                http.StatusAlreadyReported,
    	"IM Used":                         http.StatusIMUsed,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  3. internal/rest/client.go

    		return
    	}
    
    	// Only display response header.
    	var respTrace []byte
    
    	// For errors we make sure to dump response body as well.
    	if resp.StatusCode != http.StatusOK &&
    		resp.StatusCode != http.StatusPartialContent &&
    		resp.StatusCode != http.StatusNoContent {
    		respTrace, err = httputil.DumpResponse(resp, true)
    		if err != nil {
    			return
    		}
    	} else {
    		respTrace, err = httputil.DumpResponse(resp, false)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
  4. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  5. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 125K bytes
    - Viewed (0)
  6. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrObjectTampered: {
    		Code:           "XMinioObjectTampered",
    		Description:    errObjectTampered.Error(),
    		HTTPStatusCode: http.StatusPartialContent,
    	},
    
    	ErrSiteReplicationInvalidRequest: {
    		Code:           "XMinioSiteReplicationInvalidRequest",
    		Description:    "Invalid site-replication request",
    		HTTPStatusCode: http.StatusBadRequest,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  8. api/go1.txt

    pkg net/http, const StatusNotFound ideal-int
    pkg net/http, const StatusNotImplemented ideal-int
    pkg net/http, const StatusNotModified ideal-int
    pkg net/http, const StatusOK ideal-int
    pkg net/http, const StatusPartialContent ideal-int
    pkg net/http, const StatusPaymentRequired ideal-int
    pkg net/http, const StatusPreconditionFailed ideal-int
    pkg net/http, const StatusProxyAuthRequired ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  9. api/go1.1.txt

    pkg net/http, const StatusNotFound = 404
    pkg net/http, const StatusNotImplemented = 501
    pkg net/http, const StatusNotModified = 304
    pkg net/http, const StatusOK = 200
    pkg net/http, const StatusPartialContent = 206
    pkg net/http, const StatusPaymentRequired = 402
    pkg net/http, const StatusPreconditionFailed = 412
    pkg net/http, const StatusProxyAuthRequired = 407
    pkg net/http, const StatusRequestEntityTooLarge = 413
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top