Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Someheader (0.07 sec)

  1. cmd/handler-utils.go

    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))
    }
    
    func extractMetadata(ctx context.Context, mimesHeader ...textproto.MIMEHeader) (metadata map[string]string, err error) {
    	metadata = make(map[string]string)
    
    	for _, hdr := range mimesHeader {
    		// Extract all query values.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    			hashReader.SetExpectedMax(lengthRange.Max)
    		}
    	}
    
    	// Extract metadata to be saved from received Form.
    	metadata := make(map[string]string)
    	err = extractMetadataFromMime(ctx, textproto.MIMEHeader(formValues), metadata)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	rawReader := hashReader
    	pReader := NewPutObjReader(rawReader)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    					continue
    				}
    				if strings.HasPrefix(k, "minio.metadata.") {
    					k = strings.TrimPrefix(k, "minio.metadata.")
    					hdrs.Set(k, v)
    				}
    			}
    			m, err := extractMetadata(ctx, textproto.MIMEHeader(hdrs))
    			if err != nil {
    				return err
    			}
    			for k, v := range m {
    				metadata[k] = v
    			}
    		} else {
    			versionID = r.Form.Get(xhttp.VersionID)
    			hdrs = r.Header
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top