Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for HttpUrlsUsage (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

              } else if (socketMode == Channel) {
                socketFactory(ChannelSocketFactory())
              }
            }.build()
    
        server.enqueue(MockResponse(body = "abc"))
    
        @Suppress("HttpUrlsUsage")
        val url =
          if (socketMode is TlsInstance) {
            "https://$hostname:${server.port}/get"
          } else {
            "http://$hostname:${server.port}/get"
          }
    
        val request =
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt

    import java.net.URI
    import java.net.URL
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.Test
    
    @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://.
    open class HttpUrlJvmTest {
      val platform = PlatformRule()
    
      /** This one's ugly: the HttpUrl's host is non-empty, but the URI's host is null. */
      @Test
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12K bytes
    - Click Count (0)
Back to Top