Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Redirect (0.19 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

                "Test",
                "Redirect from /a to /b",
              ),
            body = "/a has moved!",
          ),
        )
        server.enqueue(
          MockResponse(body = "this is the redirect target"),
        )
    
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("this is the redirect target")
    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)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import okhttp3.internal.USER_AGENT
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.authenticator.JavaNetAuthenticator
    import okhttp3.internal.http.HTTP_PERM_REDIRECT
    import okhttp3.internal.http.HTTP_TEMP_REDIRECT
    import okhttp3.internal.platform.Platform.Companion.get
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.testing.Flaky
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    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)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        // 2 direct + 2 redirect = 4
        assertThat(cache.requestCount()).isEqualTo(4)
        assertThat(cache.hitCount()).isEqualTo(2)
        assertThat(response2.handshake!!.cipherSuite).isEqualTo(
          response1.handshake!!.cipherSuite,
        )
      }
    
      /**
       * We've had bugs where caching and cross-protocol redirects yield class cast exceptions internal
    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)
  4. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    dhl
    
    // diamonds : 2013-09-22 Binky Moon, LLC
    diamonds
    
    // diet : 2014-06-26 XYZ.COM LLC
    diet
    
    // digital : 2014-03-06 Binky Moon, LLC
    digital
    
    // direct : 2014-04-10 Binky Moon, LLC
    direct
    
    // directory : 2013-09-20 Binky Moon, LLC
    directory
    
    // discount : 2014-03-06 Binky Moon, LLC
    discount
    
    // discover : 2015-07-23 Discover Financial Services
    discover
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top