Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for expiresIn (0.12 sec)

  1. src/net/http/cookiejar/jar_test.go

    	},
    	{
    		"Delete all.",
    		"http://www.host.test/",
    		[]string{
    			"a=1; max-Age=-1",                    // delete via MaxAge
    			"b=2; " + expiresIn(-10),             // delete via Expires
    			"c=2; max-age=-1; " + expiresIn(-10), // delete via both
    			"d=4; max-age=-1; " + expiresIn(10)}, // MaxAge takes precedence
    		"",
    		[]query{{"http://www.host.test", ""}},
    	},
    	{
    		"Refill #1.",
    		"http://www.host.test",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CookieTest.kt

          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:0:00 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:00:0 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=00:00:00 Thu, 01 Jan 1970 GMT")!!.expiresAt)
          .isEqualTo(0L)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            this.value = value
          }
    
        fun expiresAt(expiresAt: Long) =
          apply {
            var expiresAt = expiresAt
            if (expiresAt <= 0L) expiresAt = Long.MIN_VALUE
            if (expiresAt > MAX_DATE) expiresAt = MAX_DATE
            this.expiresAt = expiresAt
            this.persistent = true
          }
    
        /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    		canonicalHeaders += "\n"
    	}
    
    	date := expires // Date is set to expires date for presign operations.
    	if date == "" {
    		// If expires date is empty then request header Date is used.
    		date = headers.Get(xhttp.Date)
    	}
    
    	// From the Amazon docs:
    	//
    	// StringToSign = HTTP-Verb + "\n" +
    	// 	 Content-Md5 + "\n" +
    	//	 Content-Type + "\n" +
    	//	 Date/Expires + "\n" +
    	//	 CanonicalizedProtocolHeaders +
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. cmd/signature-v4-parser_test.go

    			}
    			// validating expiry duration.
    			if testCase.expectedPreSignValues.Expires != parsedPreSign.Expires {
    				t.Errorf("Test %d: Expected expiry time to be %v, but got %v", i+1, testCase.expectedPreSignValues.Expires, parsedPreSign.Expires)
    			}
    			// validating presign date field.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. src/net/http/cookie_test.go

    	},
    	{
    		&Cookie{Name: "cookie-9", Value: "expiring", Expires: time.Unix(1257894000, 0)},
    		"cookie-9=expiring; Expires=Tue, 10 Nov 2009 23:00:00 GMT",
    	},
    	// According to IETF 6265 Section 5.1.1.5, the year cannot be less than 1601
    	{
    		&Cookie{Name: "cookie-10", Value: "expiring-1601", Expires: time.Date(1601, 1, 1, 1, 1, 1, 1, time.UTC)},
    		"cookie-10=expiring-1601; Expires=Mon, 01 Jan 1601 01:01:01 GMT",
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy

        def expiration = new WorkerDaemonExpiration(clientsManager, MemoryAmount.ofGigaBytes(OS_MEMORY_GB).bytes)
    
        def "expires least recently used idle worker daemon to free system memory when requested to release some memory"() {
            given:
            def client1 = reserveNewClient(twoGbOptions)
            def client2 = reserveNewClient(twoGbOptions)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          if (responseCaching.maxAgeSeconds != -1) {
            return SECONDS.toMillis(responseCaching.maxAgeSeconds.toLong())
          }
    
          val expires = this.expires
          if (expires != null) {
            val servedMillis = servedDate?.time ?: receivedResponseMillis
            val delta = expires.time - servedMillis
            return if (delta > 0L) delta else 0L
          }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. cmd/signature-v4_test.go

    		},
    		// (1) Should error on an invalid access key.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":     signV4Algorithm,
    				"X-Amz-Date":          now.Format(iso8601Format),
    				"X-Amz-Expires":       "60",
    				"X-Amz-Signature":     "badsignature",
    				"X-Amz-SignedHeaders": "host;x-amz-content-sha256;x-amz-date",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. pkg/credentialprovider/plugin/plugin.go

    		return dockerConfig
    	}
    
    	var expiresAt time.Time
    	// nil cache duration means use the default cache duration
    	if response.CacheDuration == nil {
    		if p.defaultCacheDuration == 0 {
    			return dockerConfig
    		}
    		expiresAt = p.clock.Now().Add(p.defaultCacheDuration)
    	} else {
    		expiresAt = p.clock.Now().Add(response.CacheDuration.Duration)
    	}
    
    	cachedEntry := &cacheEntry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 05:07:28 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top