Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 569 for expires (0.17 sec)

  1. 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)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  2. 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
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

                formatDate(-1, TimeUnit.HOURS)!!,
                "Expires",
                formatDate(1, TimeUnit.HOURS)!!,
              ),
            body = "ABC.1",
          ),
        )
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "Last-Modified",
                formatDate(-1, TimeUnit.HOURS)!!,
                "Expires",
                formatDate(1, TimeUnit.HOURS)!!,
              ),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .body("ABC")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Last-Modified: " + formatDate(-5, TimeUnit.MINUTES))
            .addHeader("Expires: " + formatDate(2, TimeUnit.HOURS))
            .body("DEF")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  5. 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
          }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CookiesTest.kt

            .build()
        val urlWithIpAddress = urlWithIpAddress(server, "/path/foo")
        server.enqueue(
          MockResponse.Builder()
            .addHeader(
              "Set-Cookie: a=android; " +
                "expires=Fri, 31-Dec-9999 23:59:59 GMT; " +
                "path=/path; " +
                "domain=${urlWithIpAddress.host}; " +
                "secure",
            )
            .build(),
        )
        get(urlWithIpAddress)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .addHeader("icy-url:http://www.A2Rradio.com")
            .addHeader("Server: Icecast 2.3.3-kh8")
            .addHeader("Cache-Control: no-cache")
            .addHeader("Pragma: no-cache")
            .addHeader("Expires: Mon, 26 Jul 1997 05:00:00 GMT")
            .addHeader("icy-metaint:16000")
            .body("mp3 data")
            .build(),
        )
        val response = getResponse(newRequest("/"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

      fun responseCookies() {
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "Set-Cookie",
                "a=b; Expires=Thu, 01 Jan 1970 00:00:00 GMT",
                "Set-Cookie",
                "c=d; Expires=Fri, 02 Jan 1970 23:59:59 GMT; path=/bar; secure",
              ),
          ),
        )
        val cookieJar = RecordingCookieJar()
        client =
          client.newBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  10. mockwebserver/src/main/kotlin/mockwebserver3/PushPromise.kt

     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package mockwebserver3
    
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.Headers
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 874 bytes
    - Viewed (0)
Back to top