Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkPreconditions (0.21 sec)

  1. cmd/s3-zip-handlers.go

    	opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    		if _, err := DecryptObjectInfo(&oi, r); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return true
    		}
    
    		return checkPreconditions(ctx, w, r, oi, opts)
    	}
    
    	zipObjInfo, err := getObjectInfo(ctx, bucket, zipPath, opts)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. cmd/object-handlers-common.go

    // Validates the preconditions. Returns true if GET/HEAD operation should not proceed.
    // Preconditions supported are:
    //
    //	If-Modified-Since
    //	If-Unmodified-Since
    //	If-Match
    //	If-None-Match
    func checkPreconditions(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
    	// Return false for methods other than GET and HEAD.
    	if r.Method != http.MethodGet && r.Method != http.MethodHead {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    	opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    		if _, err := DecryptObjectInfo(&oi, r); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return true
    		}
    
    		return checkPreconditions(ctx, w, r, oi, opts)
    	}
    
    	opts.FastGetObjInfo = true
    
    	var proxy proxyResult
    	gr, err := getObjectNInfo(ctx, bucket, object, rs, r.Header, opts)
    	if err != nil {
    		var (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 125K bytes
    - Viewed (0)
Back to top