- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for 302 (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
MockResponse( code = 302, headers = headersOf("Location", "/b"), body = "A", ), ) server.enqueue(MockResponse(body = "B")) client = client .newBuilder() .followRedirects(false) .build() executeSynchronously("/a") .assertBody("A") .assertCode(302) } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
} @Test fun foundCachedWithExpiresHeader() { temporaryRedirectCachedWithCachingHeader(302, "Expires", formatDate(1, TimeUnit.HOURS)) } @Test fun foundCachedWithCacheControlHeader() { temporaryRedirectCachedWithCachingHeader(302, "Cache-Control", "max-age=60") } @Test fun temporaryRedirectCachedWithExpiresHeader() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
val redirectUrl = "http://host\u0000/" server.enqueue( MockResponse .Builder() .code(302) .addHeaderLenient("Location", redirectUrl) .build(), ) val response = getResponse(newRequest("/")) assertThat(response.code).isEqualTo(302) assertThat(response.header("Location")).isEqualTo(redirectUrl) } @Test fun urlWithBadAsciiHost() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFile.java
// Add lease context to create request if (h.isSMB30()) { // Use Lease V2 for SMB 3.0.2+ req.addLeaseV2Context(leaseKey, requestedState, null, 0); } else { // Use Lease V1 for SMB 3.0Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0)