Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 28 for getByName (0.05 seconds)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

            add(buildCryptoSx(client)) // 521 - server down
          }
          add(buildChantra(client))
        }
    
      private fun getByIp(host: String): InetAddress =
        try {
          InetAddress.getByName(host)
        } catch (e: UnknownHostException) {
          // unlikely
          throw RuntimeException(e)
        }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      }
    
      private fun startTlsServer(): InetSocketAddress {
        val serverSocketFactory = ServerSocketFactory.getDefault()
        serverSocket = serverSocketFactory.createServerSocket()
        val serverAddress = InetAddress.getByName("localhost")
        serverSocket!!.bind(InetSocketAddress(serverAddress, 0), 50)
        return InetSocketAddress(serverAddress, serverSocket!!.localPort)
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      @JvmStatic
      fun awaitGarbageCollection() {
        Runtime.getRuntime().gc()
        Thread.sleep(100)
        System.runFinalization()
      }
    
      @JvmStatic
      fun assumeNetwork() {
        try {
          InetAddress.getByName("www.google.com")
        } catch (uhe: UnknownHostException) {
          assumeTrue(false, "requires network")
        }
      }
    
      @JvmStatic
      fun assumeNotWindows() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

            css.include("*.css");
            extension.getCssFiles().from(css);
    
            extension.getRenderedDocumentation().from(stageDocs);
    
            Configuration runtimeClasspath = project.getConfigurations().getByName("runtimeClasspath");
            Configuration sourcesPath = project.getConfigurations().create("sourcesPath");
            sourcesPath.attributes(a -> {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jul 02 12:28:02 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

            }
            // It would be nice if we could be more selective about which variants to apply this to.
            // TODO https://github.com/gradle/gradle/issues/11831#issuecomment-580686994
            artifactTypes.getByName("jar") {
                attributes.attribute(minified, java.lang.Boolean.FALSE)
            }
            /*
             * It would perhaps be better to do this more selectively instead of applying this transform so broadly and having
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 25 16:18:05 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  6. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

            attribute(NullawayAttributes.nullawayAttribute) {
                compatibilityRules.add(NullawayCompatibilityRule::class.java)
            }
        }
    }
    
    project.plugins.withType<JavaBasePlugin> {
        project.extensions.getByName<SourceSetContainer>("sourceSets").configureEach {
            val isMainSourceSet = (name == "main")
    
            val extension = this.extensions.create<ErrorProneSourceSetExtension>(
                "errorprone",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Oct 01 11:57:43 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

          assumeTrue((socketMode.provider == CONSCRYPT) == platform.isConscrypt())
        }
    
        val client =
          clientTestRule
            .newClientBuilder()
            .dns { listOf(InetAddress.getByName("localhost")) }
            .callTimeout(4, SECONDS)
            .writeTimeout(2, SECONDS)
            .readTimeout(2, SECONDS)
            .apply {
              if (socketMode is TlsInstance) {
    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)
  8. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          .includeIPv6(includeIPv6)
          .resolvePrivateAddresses(true)
          .url(url)
          .post(post)
          .build()
      }
    
      companion object {
        private fun address(host: String) = InetAddress.getByName(host)
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

          mutableInetSocketAddresses += InetSocketAddress.createUnresolved(socketHost, socketPort)
        } else {
          val addresses =
            if (socketHost.canParseAsIpAddress()) {
              listOf(InetAddress.getByName(socketHost))
            } else {
              call.eventListener.dnsStart(call, socketHost)
    
              val result = address.dns.lookup(socketHost)
              if (result.isEmpty()) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 7.3K bytes
    - Click Count (2)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

      }
    
      private fun urlWithIpAddress(
        server: MockWebServer,
        path: String,
      ): HttpUrl =
        server
          .url(path)
          .newBuilder()
          .host(InetAddress.getByName(server.hostName).hostAddress)
          .build()
    
      private operator fun get(url: HttpUrl) {
        val call =
          client.newCall(
            Request
              .Builder()
              .url(url)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 13K bytes
    - Click Count (0)
Back to Top