Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 9,294 for xhttp (0.16 sec)

  1. cmd/object-api-options.go

    		case xhttp.StorageClass:
    		case xhttp.ObjectSize:
    		case xhttp.ObjectParts:
    		default:
    			apiErr = errorCodes.ToAPIErr(ErrInvalidAttributeName)
    			argumentName = strings.ToLower(xhttp.AmzObjectAttributes)
    			argumentValue = tag
    			valid = false
    			return
    		}
    	}
    
    	return
    }
    
    func parseObjectAttributes(h http.Header) (attributes map[string]struct{}) {
    	attributes = make(map[string]struct{})
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    	query.Set(xhttp.AmzSignedHeaders, strings.Join(pSignValues.SignedHeaders, ";"))
    	query.Set(xhttp.AmzCredential, cred.AccessKey+SlashSeparator+pSignValues.Credential.getScope())
    
    	defaultSigParams := set.CreateStringSet(
    		xhttp.AmzContentSha256,
    		xhttp.AmzSecurityToken,
    		xhttp.AmzAlgorithm,
    		xhttp.AmzDate,
    		xhttp.AmzExpires,
    		xhttp.AmzSignedHeaders,
    		xhttp.AmzCredential,
    		xhttp.AmzSignature,
    	)
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. internal/crypto/metadata.go

    	delete(metadata, xhttp.AmzServerSideEncryption)
    	delete(metadata, xhttp.AmzServerSideEncryptionKmsID)
    	delete(metadata, xhttp.AmzServerSideEncryptionKmsContext)
    	delete(metadata, xhttp.AmzServerSideEncryptionCustomerAlgorithm)
    	delete(metadata, xhttp.AmzServerSideEncryptionCustomerKey)
    	delete(metadata, xhttp.AmzServerSideEncryptionCustomerKeyMD5)
    	delete(metadata, xhttp.AmzServerSideEncryptionCopyCustomerAlgorithm)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. cmd/object-handlers-common.go

    		w.Header().Set(xhttp.LastModified, objInfo.ModTime.UTC().Format(http.TimeFormat))
    
    		if objInfo.ETag != "" {
    			w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    		}
    	}
    
    	// If-Match : Return the object only if its entity tag (ETag) is the same as the one specified;
    	// otherwise return a 412 (precondition failed).
    	ifMatchETagHeader := r.Header.Get(xhttp.IfMatch)
    	if ifMatchETagHeader != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. internal/crypto/header.go

    	h.Del(xhttp.AmzServerSideEncryptionCustomerKey)
    	h.Del(xhttp.AmzServerSideEncryptionCopyCustomerKey)
    	h.Del(xhttp.AmzMetaUnencryptedContentLength)
    	h.Del(xhttp.AmzMetaUnencryptedContentMD5)
    }
    
    // SSECopy represents AWS SSE-C for copy requests. It provides
    // functionality to handle SSE-C copy requests.
    var SSECopy = ssecCopy{}
    
    type ssecCopy struct{}
    
    // IsRequested returns true if the HTTP headers contains
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. cmd/api-headers.go

    func setEventStreamHeaders(w http.ResponseWriter) {
    	w.Header().Set(xhttp.ContentType, "text/event-stream")
    	w.Header().Set(xhttp.CacheControl, "no-cache") // nginx to turn off buffering
    	w.Header().Set("X-Accel-Buffering", "no")      // nginx to turn off buffering
    }
    
    // Write http common headers
    func setCommonHeaders(w http.ResponseWriter) {
    	// Set the "Server" http header.
    	w.Header().Set(xhttp.ServerInfo, MinioStoreName)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  7. internal/crypto/header_test.go

    		ExpectedHeader: http.Header{},
    	},
    	{ // Standard SSE-C request headers
    		Header: http.Header{
    			xhttp.AmzServerSideEncryptionCustomerAlgorithm: []string{xhttp.AmzEncryptionAES},
    			xhttp.AmzServerSideEncryptionCustomerKey:       []string{"MzJieXRlc2xvbmdzZWNyZXRrZXltdXN0cHJvdmlkZWQ="},
    			xhttp.AmzServerSideEncryptionCustomerKeyMD5:    []string{"7PpPLAK26ONlVUGOWlusfg=="},
    		},
    		ExpectedHeader: http.Header{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. cmd/healthcheck-handler.go

    // if configured.
    func ReadinessCheckHandler(w http.ResponseWriter, r *http.Request) {
    	if objLayer := newObjectLayerFn(); objLayer == nil {
    		w.Header().Set(xhttp.MinIOServerStatus, unavailable) // Service not initialized yet
    	}
    	if r.Header.Get(xhttp.MinIOPeerCall) != "" {
    		writeResponse(w, http.StatusOK, nil, mimeNone)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 03 21:13:20 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. internal/crypto/sse-c.go

    // on success. SSE-C copy headers are ignored.
    func (ssec) ParseHTTP(h http.Header) (key [32]byte, err error) {
    	if h.Get(xhttp.AmzServerSideEncryptionCustomerAlgorithm) != xhttp.AmzEncryptionAES {
    		return key, ErrInvalidCustomerAlgorithm
    	}
    	if h.Get(xhttp.AmzServerSideEncryptionCustomerKey) == "" {
    		return key, ErrMissingCustomerKey
    	}
    	if h.Get(xhttp.AmzServerSideEncryptionCustomerKeyMD5) == "" {
    		return key, ErrMissingCustomerKeyMD5
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top