Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for extractMetadataFromReq (0.31 sec)

  1. cmd/handler-utils.go

    // must be extracted from the header.
    var userMetadataKeyPrefixes = []string{
    	"x-amz-meta-",
    	"x-minio-meta-",
    }
    
    // extractMetadataFromReq extracts metadata from HTTP header and HTTP queryString.
    func extractMetadataFromReq(ctx context.Context, r *http.Request) (metadata map[string]string, err error) {
    	return extractMetadata(ctx, textproto.MIMEHeader(r.Form), textproto.MIMEHeader(r.Header))
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  2. cmd/object-multipart-handlers.go

    		// decryption if the file was actually multipart or not.
    		encMetadata[ReservedMetadataPrefix+"Encrypted-Multipart"] = ""
    	}
    
    	// Extract metadata that needs to be saved.
    	metadata, err := extractMetadataFromReq(ctx, r)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if objTags := r.Header.Get(xhttp.AmzObjectTagging); objTags != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    	}
    
    	// if x-amz-metadata-directive says REPLACE then
    	// we extract metadata from the input headers.
    	if isDirectiveReplace(r.Header.Get(xhttp.AmzMetadataDirective)) {
    		emetadata, err := extractMetadataFromReq(ctx, r)
    		if err != nil {
    			return nil, err
    		}
    		if sc != "" {
    			emetadata[xhttp.AmzStorageClass] = sc
    		}
    		return emetadata, nil
    	}
    
    	if sc != "" {
    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)
Back to top