Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for toHttpUrl (0.09 sec)

  1. okhttp-dnsoverhttps/README.md

      val bootstrapClient = OkHttpClient.Builder().cache(appCache).build()
    
      val dns = DnsOverHttps.Builder().client(bootstrapClient)
        .url("https://dns.google/dns-query".toHttpUrl())
        .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8"))
        .build()
    
      val client = bootstrapClient.newBuilder().dns(dns).build()
    ```
    
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 740 bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val httpOnly: Boolean = cookie.httpOnly
        val secure: Boolean = cookie.secure
        val matches: Boolean = cookie.matches("".toHttpUrl())
        val parsedCookie: Cookie? = Cookie.parse("".toHttpUrl(), "")
        val cookies: List<Cookie> = Cookie.parseAll("".toHttpUrl(), headersOf())
      }
    
      @Test
      fun cookieBuilder() {
        var builder: Cookie.Builder = Cookie.Builder()
        builder = builder.name("")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          "http://and roid.com/".toHttpUrl()
        }
      }
    
      @Test
      fun urlWithSpaceInHostViaHttpProxy() {
        assertFailsWith<IllegalArgumentException> {
          "http://and roid.com/".toHttpUrl()
        }
      }
    
      @Test
      fun urlHostWithNul() {
        assertFailsWith<IllegalArgumentException> {
          "http://host\u0000/".toHttpUrl()
        }
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  4. docs/changelogs/upgrading_to_okhttp_4.md

    | Handshake.get(SSLSession)           | SSLSession.handshake()          |
    | Headers.of(Map<String, String>)     | Map<String, String>.toHeaders() |
    | HttpUrl.get(String)                 | String.toHttpUrl()              |
    | HttpUrl.get(URI)                    | URI.toHttpUrlOrNull()           |
    | HttpUrl.get(URL)                    | URL.toHttpUrlOrNull()           |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          message = "moved to extension function",
          replaceWith =
            ReplaceWith(
              expression = "url.toHttpUrl()",
              imports = ["okhttp3.HttpUrl.Companion.toHttpUrl"],
            ),
          level = DeprecationLevel.ERROR,
        )
        fun get(url: String): HttpUrl = url.toHttpUrl()
    
        @JvmName("-deprecated_parse")
        @Deprecated(
          message = "moved to extension function",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        val hostNfd = "cafeĢ.com"
        val hostNfdPunycode = "xn--cafe-yvc.com"
        assertEquals(hostNfcPunycode, "http://$hostNfc/".toHttpUrl().host)
        assertEquals(hostNfcPunycode, "http://$hostNfcPunycode/".toHttpUrl().host)
        assertEquals(hostNfcPunycode, "http://$hostNfd/".toHttpUrl().host)
        if (isJvm) return // TODO: the rest of this test is broken on JVM platforms.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

    import mockwebserver3.SocketPolicy.DisconnectDuringResponseBody
    import mockwebserver3.SocketPolicy.ShutdownServerAfterResponse
    import okhttp3.Headers
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.RecordingHostnameVerifier
    import okhttp3.Request
    import okhttp3.TestUtil.assumeNotWindows
    import okhttp3.testing.PlatformRule
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import okhttp3.CertificatePinner
    import okhttp3.Connection
    import okhttp3.DelegatingSSLSocket
    import okhttp3.DelegatingSSLSocketFactory
    import okhttp3.EventListener
    import okhttp3.Headers
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol
    import okhttp3.RecordingEventListener
    import okhttp3.Request
    import okhttp3.TlsVersion
    import okhttp3.dnsoverhttps.DnsOverHttps
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

    import okhttp3.CallEvent.ResponseFailed
    import okhttp3.CertificatePinner.Companion.pin
    import okhttp3.Credentials.basic
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.TestUtil.assumeNotWindows
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  10. CHANGELOG.md

    the fixes or features below, please upgrade.
    
     *  New: Named and default parameters constructor for `Request`:
    
        ```
        val request = Request(
          url = "https://cash.app/".toHttpUrl(),
        )
        ```
    
     *  New: `Response.body` is now non-null. This was generally the case in OkHttp 4.x, but the Kotlin
        type declaration was nullable to support rare cases like the body on `Response.cacheResponse`,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top