Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for followRedirect (0.1 seconds)

  1. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                  info: UrlResponseInfo,
                  newLocationUrl: String,
                ) {
                  println("request " + info.httpStatusCode + " " + newLocationUrl)
                  request.followRedirect()
                }
    
                override fun onResponseStarted(
                  request: UrlRequest,
                  info: UrlResponseInfo,
                ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

        .default(DEFAULT_TIMEOUT)
    
      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()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6K bytes
    - Click Count (0)
  3. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

      private val server = MockWebServer()
    
      @Test fun get() {
        // Not available
        platform.expectFailureOnJdkVersion(8)
    
        val httpClient =
          HttpClient
            .newBuilder()
            .followRedirects(NORMAL)
            .build()
    
        server.enqueue(
          MockResponse
            .Builder()
            .body("hello, Java HTTP Client")
            .build(),
        )
    
        val request =
          HttpRequest
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 25 13:16:02 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

         * Returns a new chain with the specified write timeout.
         */
        fun withWriteTimeout(
          timeout: Int,
          unit: TimeUnit,
        ): Chain
    
        val followSslRedirects: Boolean
    
        val followRedirects: Boolean
    
        /**
         * Get the [DNS] instance for the OkHttpClient, or an override from the Call.Chain.
         */
        val dns: Dns
    
        /**
         * Override the [DNS] for the Call.Chain.
         *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
Back to Top