Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for type (0.23 sec)

  1. docs/changelogs/upgrading_to_okhttp_4.md

    The username and password parameters to `Credentials.basic()` are now non-null strings. In OkHttp
    3.x, null would yield a username or password of "null".
    
    #### HttpUrl.queryParameterValues()
    
    The return type of `HttpUrl.queryParameterValues()` is `List<String?>`. Lists that may contain null
    are uncommon and Kotlin callers may have incorrectly assigned the result to `List<String>`.
    
    
    Code Cleanup
    ------------
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            goodCertificate.certificate,
          )
        server.useHttps(socketFactory)
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .addHeader("Content-Type: text/plain")
            .build(),
        )
    
        // Make a request from client to server. It should succeed certificate checks (unfortunately the
        // rogue CA is trusted) but it should fail certificate pinning.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

      }
    
      @Test
      fun kotlinReifiedTag() {
        val uuidTag = "1234"
        val request =
          Request.Builder()
            .url("https://square.com")
            .tag<String>(uuidTag) // Use the type parameter.
            .build()
        assertThat(request.tag<String>()).isSameAs("1234")
        assertThat(request.tag<Any>()).isNull()
    
        // Alternate access APIs also work.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header("content-encoding", ""),
          Header("content-language", ""),
          Header("content-length", ""),
          Header("content-location", ""),
          Header("content-range", ""),
          Header("content-type", ""),
          Header("cookie", ""),
          Header("date", ""),
          Header("etag", ""),
          Header("expect", ""),
          Header("expires", ""),
          Header("from", ""),
          Header("host", ""),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
Back to top