Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for followRedirects (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

        fun followRedirects(followRedirects: Boolean) =
          apply {
            this.followRedirects = followRedirects
          }
    
        /**
         * Configure this client to allow protocol redirects from HTTPS to HTTP and from HTTP to HTTPS.
         * Redirects are still first restricted by [followRedirects].  Defaults to true.
         *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:55:03 UTC 2025
    - 51.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val connectionPool: ConnectionPool = client.connectionPool
        val dns: Dns = client.dns
        val followSslRedirects: Boolean = client.followSslRedirects
        val followRedirects: Boolean = client.followRedirects
        val retryOnConnectionFailure: Boolean = client.retryOnConnectionFailure
        val callTimeoutMillis: Int = client.callTimeoutMillis
        val connectTimeoutMillis: Int = client.connectTimeoutMillis
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 47K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       *
       * Response header values like `Location` and `Retry-After` are also considered.
       *
       * Client configuration may be used to make follow-up decisions, such as:
       *
       *  * [OkHttpClient.followRedirects] must be true to follow redirects.
       *  * [OkHttpClient.followSslRedirects] must be true to follow redirects that add or remove HTTPS.
       *  * [OkHttpClient.authenticator] must respond to an authorization challenge.
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. okhttp/api/jvm/okhttp.api

    	public final fun dispatcher ()Lokhttp3/Dispatcher;
    	public final fun dns ()Lokhttp3/Dns;
    	public final fun eventListenerFactory ()Lokhttp3/EventListener$Factory;
    	public final fun fastFallback ()Z
    	public final fun followRedirects ()Z
    	public final fun followSslRedirects ()Z
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun interceptors ()Ljava/util/List;
    	public final fun minWebSocketMessageToCompress ()J
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
  5. okhttp/api/android/okhttp.api

    	public final fun dispatcher ()Lokhttp3/Dispatcher;
    	public final fun dns ()Lokhttp3/Dns;
    	public final fun eventListenerFactory ()Lokhttp3/EventListener$Factory;
    	public final fun fastFallback ()Z
    	public final fun followRedirects ()Z
    	public final fun followSslRedirects ()Z
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun interceptors ()Ljava/util/List;
    	public final fun minWebSocketMessageToCompress ()J
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

            headers = headersOf("Location", "/b"),
            body = "A",
          ),
        )
        server.enqueue(MockResponse(body = "B"))
        client =
          client
            .newBuilder()
            .followRedirects(false)
            .build()
        executeSynchronously("/a")
          .assertBody("A")
          .assertCode(302)
      }
    
      @Test
      fun expect100ContinueNonEmptyRequestBody() {
        server.enqueue(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
Back to top