Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for followRedirects (0.15 sec)

  1. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val callTimeout: Int by option(
        "--call-timeout",
        help = "Maximum time allowed for the entire call (seconds)",
      ).int().default(DEFAULT_TIMEOUT)
    
      val followRedirects: Boolean by option("-L", "--location", help = "Follow redirects").flag()
    
      val allowInsecure: Boolean by option("-k", "--insecure", help = "Allow connections to SSL sites without certs").flag()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  2. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

      val platform = PlatformRule()
    
      @Test fun get(server: MockWebServer) {
        // Not available
        platform.expectFailureOnJdkVersion(8)
    
        val httpClient =
          HttpClient.newBuilder()
            .followRedirects(NORMAL)
            .build()
    
        server.enqueue(
          MockResponse.Builder()
            .body("hello, Java HTTP Client")
            .build(),
        )
    
        val request =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                request: UrlRequest,
                info: UrlResponseInfo,
                newLocationUrl: String,
              ) {
                println("request " + info.httpStatusCode + " " + newLocationUrl)
                request.followRedirect()
              }
    
              override fun onResponseStarted(
                request: UrlRequest,
                info: UrlResponseInfo,
              ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top