Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 401 - 410 of 2,716 for build2 (0.06 seconds)

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

      }
    
      @Test
      fun toUriFragmentSpecialCharacters() {
        val url =
          HttpUrl
            .Builder()
            .scheme("http")
            .host("host")
            .fragment("=[]:;\"~|?#@^/$%*")
            .build()
        assertThat(url.toString()).isEqualTo("http://host/#=[]:;\"~|?#@^/$%25*")
        assertThat(url.toUri().toString())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt

    class ConfigureTimeouts {
      private val client: OkHttpClient =
        OkHttpClient
          .Builder()
          .connectTimeout(5, TimeUnit.SECONDS)
          .writeTimeout(5, TimeUnit.SECONDS)
          .readTimeout(5, TimeUnit.SECONDS)
          .callTimeout(10, TimeUnit.SECONDS)
          .build()
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      }
    
      private static void testConcurrentLoading(CacheBuilder<Object, Object> builder)
          throws InterruptedException {
        testConcurrentLoadingDefault(builder);
        testConcurrentLoadingNull(builder);
        testConcurrentLoadingUncheckedException(builder);
        testConcurrentLoadingCheckedException(builder);
      }
    
      @AndroidIncompatible // Bug? expected:<1> but was:<2>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  4. build-logic/src/main/kotlin/BndBuildAction.kt

            builder.setSourcepath(validSourcepath.files.toTypedArray())
    
            val builtJar = builder.build()
            if (!builder.isOk) {
              builder.getErrors().forEach { task.logger.error("Error: $it") }
              builder.getWarnings().forEach { task.logger.warn("Warning: $it") }
              throw GradleException("Bundle $archiveFileName has errors")
            }
    
            builtJar.write(archiveFile)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

        redirectTarget.enqueue(MockResponse.Builder().body("A").build())
        redirectTarget.start()
        val redirectTargetUrl = urlWithIpAddress(redirectTarget, "/")
        val redirectSource = MockWebServer()
        redirectSource.enqueue(
          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .addHeader("Location: $redirectTargetUrl")
            .build(),
        )
        redirectSource.start()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Mar 19 07:46:39 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

        public SortedMap<String, String> create(Entry<String, String>[] entries) {
          ImmutableSortedMap.Builder<String, String> builder = ImmutableSortedMap.naturalOrder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
      public static class ImmutableSortedMapCopyOfEntriesGenerator
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

        for (CacheBuilder<Object, Object> builder : cacheFactory().buildAllPermutations()) {
          // all caches should be different: instance equality
          new EqualsTester()
              .addEqualityGroup(builder.build(identityLoader()))
              .addEqualityGroup(builder.build(identityLoader()))
              .addEqualityGroup(builder.build(identityLoader()))
              .testEquals();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  8. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

          factory("com.google.android.gms.org.conscrypt")
    
        /**
         * Builds a SocketAdapter from an observed implementation class, by grabbing the Class
         * reference to perform reflection on at runtime.
         *
         * @param actualSSLSocketClass the runtime class of Conscrypt class socket.
         */
        private fun build(actualSSLSocketClass: Class<in SSLSocket>): AndroidSocketAdapter {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

        val COMPATIBLE_TLS =
          Builder(true)
            .cipherSuites(*APPROVED_CIPHER_SUITES.toTypedArray())
            .tlsVersions(TlsVersion.TLS_1_3, TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0)
            .supportsTlsExtensions(true)
            .build()
    
        /** Unencrypted, unauthenticated connections for `http:` URLs. */
        @JvmField
        val CLEARTEXT = Builder(false).build()
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 09:36:53 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

            .build()
        server.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 11:54:15 GMT 2026
    - 10.7K bytes
    - Click Count (0)
Back to Top