Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 134 for headers (0.16 sec)

  1. cmd/object-handlers-common.go

    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    	// Headers to be set of object content is not going to be written to the client.
    	writeHeaders := func() {
    		// set common headers
    		setCommonHeaders(w)
    
    		// set object-related metadata headers
    		w.Header().Set(xhttp.LastModified, objInfo.ModTime.UTC().Format(http.TimeFormat))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    	},
    	ErrUnsupportedMetadata: {
    		Code:           "InvalidArgument",
    		Description:    "Your metadata headers are not supported.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrUnsupportedHostHeader: {
    		Code:           "InvalidArgument",
    		Description:    "Your Host header is malformed.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrObjectTampered: {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  3. cmd/erasure-metadata.go

    		FreeVersion: fi.TierFreeVersion(),
    		Tier:        fi.TransitionTier,
    	}
    
    	// etag/md5Sum has already been extracted. We need to
    	// remove to avoid it from appearing as part of
    	// response headers. e.g, X-Minio-* or X-Amz-*.
    	// Tags have also been extracted, we remove that as well.
    	objInfo.UserDefined = cleanMetadata(fi.Metadata)
    
    	// All the parts per object.
    	objInfo.Parts = fi.Parts
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. cmd/tier.go

    	config.drivercache[tierName] = d
    	return nil
    }
    
    // Bytes returns msgpack encoded config with format and version headers.
    func (config *TierConfigMgr) Bytes() ([]byte, error) {
    	config.RLock()
    	defer config.RUnlock()
    	data := make([]byte, 4, config.Msgsize()+4)
    
    	// Initialize the header.
    	binary.LittleEndian.PutUint16(data[0:2], tierConfigFormat)
    	binary.LittleEndian.PutUint16(data[2:4], tierConfigVersion)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. cmd/object-api-options.go

    	}
    	if v, ok := header[xhttp.MinIOSourceProxyRequest]; ok {
    		opts.ProxyHeaderSet = true
    		opts.ProxyRequest = strings.Join(v, "") == "true"
    	}
    	if _, ok := header[xhttp.MinIOSourceReplicationRequest]; ok {
    		opts.ReplicationRequest = true
    	}
    	opts.Speedtest = header.Get(globalObjectPerfUserMetadata) != ""
    	return
    }
    
    // get ObjectOptions for GET calls from encryption headers
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. cmd/batch-expire.go

    	if r.NotificationCfg.Endpoint == "" {
    		return nil
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
    	defer cancel()
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, r.NotificationCfg.Endpoint, body)
    	if err != nil {
    		return err
    	}
    
    	if r.NotificationCfg.Token != "" {
    		req.Header.Set("Authorization", r.NotificationCfg.Token)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  7. cmd/generic-handlers.go

    			// Make sure we remove any existing headers before
    			// proxying the request to another node.
    			for k := range w.Header() {
    				w.Header().Del(k)
    			}
    			globalForwarder.ServeHTTP(w, r)
    			return
    		}
    		h.ServeHTTP(w, r)
    	})
    }
    
    // addCustomHeadersMiddleware adds various HTTP(S) response headers.
    // Security Headers enable various security protections behaviors in the client's browser.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    		}
    		if err != nil {
    			return err
    		}
    
    		cHeader := http.Header{}
    		cHeader.Add(xhttp.MinIOSourceReplicationRequest, "true")
    		popts := minio.PutObjectPartOptions{
    			SSE:          opts.ServerSideEncryption,
    			CustomHeader: cHeader,
    		}
    
    		if crypto.SSEC.IsEncrypted(objInfo.UserDefined) {
    			objectSize += partInfo.Size
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. internal/bucket/object/lock/lock.go

    // IsObjectLockGovernanceBypassSet returns true if object lock governance bypass header is set.
    func IsObjectLockGovernanceBypassSet(h http.Header) bool {
    	return strings.EqualFold(h.Get(AmzObjectLockBypassRetGovernance), "true")
    }
    
    // IsObjectLockRequested returns true if legal hold or object lock retention headers are requested.
    func IsObjectLockRequested(h http.Header) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. cmd/s3-zip-handlers.go

    		ModTime: zipObjInfo.ModTime,
    	}
    
    	// Set standard object headers.
    	if err = setObjectHeaders(w, objInfo, nil, opts); err != nil {
    		writeErrorResponseHeadersOnly(w, toAPIError(ctx, err))
    		return
    	}
    
    	// s3zip does not allow ranges.
    	w.Header().Del(xhttp.AcceptRanges)
    
    	// Set any additional requested response headers.
    	setHeadGetRespHeaders(w, r.Form)
    
    	// Successful response.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top