- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for checkPreconditions (0.21 sec)
-
cmd/object-handlers-common_test.go
} for _, test := range testCases { etag := canonicalizeETag(test.etag) if test.canonicalizedETag != etag { t.Fatalf("Expected %s , got %s", test.canonicalizedETag, etag) } } } // Tests - CheckPreconditions() func TestCheckPreconditions(t *testing.T) { objModTime := time.Date(2024, time.August, 26, 0o2, 0o1, 0o1, 0, time.UTC) objInfo := ObjectInfo{ETag: "aa", ModTime: objModTime} testCases := []struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 5.3K bytes - Viewed (0) -
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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 15.3K bytes - Viewed (0) -
cmd/object-handlers.go
} if s3Error := authorizeRequest(ctx, r, policy.GetObjectAction); s3Error != ErrNone { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), 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 (
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 05 05:16:15 UTC 2024 - 117.4K bytes - Viewed (0)