Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 924 for builder2 (0.45 sec)

  1. docs/changelogs/upgrading_to_okhttp_4.md

    with OkHttp 3.x: must use `object :` with OkHttp 4.x:
    
    Kotlin calling OkHttp 3.x:
    
    ```kotlin
    val client = OkHttpClient.Builder()
        .dns { hostname -> InetAddress.getAllByName(hostname).toList() }
        .build()
    ```
    
    Kotlin calling OkHttp 4.x:
    
    ```kotlin
    val client = OkHttpClient.Builder()
        .dns(object : Dns {
          override fun lookup(hostname: String) =
              InetAddress.getAllByName(hostname).toList()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  2. okhttp-brotli/README.md

    provided Accept-Encoding is not set previously.  Modern web servers
    must choose to return Brotli responses.  n.b. It is not used for
    sending requests.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(BrotliInterceptor.INSTANCE)
      .build();
    ```
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-brotli:4.12.0")
    ```
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 572 bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

     */
    public final class PrintEventsNonConcurrent {
      private final OkHttpClient client = new OkHttpClient.Builder()
          .eventListener(new PrintingEventListener())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        System.out.println("REQUEST 1 (new connection)");
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Streams.java

        boolean isParallel = false;
        int characteristics = Spliterator.ORDERED | Spliterator.SIZED | Spliterator.NONNULL;
        long estimatedSize = 0L;
        ImmutableList.Builder<Spliterator<? extends T>> splitrsBuilder =
            new ImmutableList.Builder<>(streams.length);
        for (Stream<? extends T> stream : streams) {
          isParallel |= stream.isParallel();
          Spliterator<? extends T> splitr = stream.spliterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * 5);
        builder.append(toString(array[0]));
        for (int i = 1; i < array.length; i++) {
          builder.append(separator).append(toString(array[i]));
        }
        return builder.toString();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/UnsignedInts.java

          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * 5);
        builder.append(toString(array[0]));
        for (int i = 1; i < array.length; i++) {
          builder.append(separator).append(toString(array[i]));
        }
        return builder.toString();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

        }
    
        fun exhaust(reader: Reader): String {
          val builder = StringBuilder()
          val buf = CharArray(10)
          var read: Int
          while (reader.read(buf).also { read = it } != -1) {
            builder.appendRange(buf, 0, read)
          }
          return builder.toString()
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

            }
    
            // despite all are back, we need to make sure all the events are processed (are async)
            // this one should block until all processed
            listener.transferSucceeded(new TransferEvent.Builder(session, resource)
                    .setType(TransferEvent.EventType.SUCCEEDED)
                    .build());
    
            StringBuilder message = new StringBuilder("Messages [");
            boolean test = true;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

        @Override
        public Optional<String> threads() {
            return returnFirstPresentOrEmpty(MavenOptions::threads);
        }
    
        @Override
        public Optional<String> builder() {
            return returnFirstPresentOrEmpty(MavenOptions::builder);
        }
    
        @Override
        public Optional<Boolean> noTransferProgress() {
            return returnFirstPresentOrEmpty(MavenOptions::noTransferProgress);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

          CacheBuilder<? super K, ? super V> builder, @CheckForNull CacheLoader<? super K, V> loader) {
        concurrencyLevel = min(builder.getConcurrencyLevel(), MAX_SEGMENTS);
    
        keyStrength = builder.getKeyStrength();
        valueStrength = builder.getValueStrength();
    
        keyEquivalence = builder.getKeyEquivalence();
        valueEquivalence = builder.getValueEquivalence();
    
        maxWeight = builder.getMaximumWeight();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top