Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for challenges (0.04 sec)

  1. docs/recipes.md

    Use `Response.challenges()` to get the schemes and realms of any authentication challenges. When fulfilling a `Basic` challenge, use `Credentials.basic(username, password)` to encode the request header.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  2. okhttp/api/jvm/okhttp.api

    	public final fun body ()Lokhttp3/ResponseBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheResponse ()Lokhttp3/Response;
    	public final fun challenges ()Ljava/util/List;
    	public fun close ()V
    	public final fun code ()I
    	public final fun handshake ()Lokhttp3/Handshake;
    	public final fun header (Ljava/lang/String;)Ljava/lang/String;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  3. okhttp/api/android/okhttp.api

    	public final fun body ()Lokhttp3/ResponseBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheResponse ()Lokhttp3/Response;
    	public final fun challenges ()Ljava/util/List;
    	public fun close ()V
    	public final fun code ()I
    	public final fun handshake ()Lokhttp3/Handshake;
    	public final fun header (Ljava/lang/String;)Ljava/lang/String;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .code(responseCode)
            .body("ABCDE")
            .addHeader("WWW-Authenticate: challenge")
        when (responseCode) {
          HttpURLConnection.HTTP_PROXY_AUTH -> {
            builder.addHeader("Proxy-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_UNAUTHORIZED -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top