Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 182 for newBuilder (0.09 seconds)

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

      }
    
      @Test
      fun newBuilderUrlResetsUrl() {
        val requestWithoutCache = Request.Builder().url("http://localhost/api").build()
        val builtRequestWithoutCache = requestWithoutCache.newBuilder().url("http://localhost/api/foo").build()
        assertThat(builtRequestWithoutCache.url).isEqualTo(
          "http://localhost/api/foo".toHttpUrl(),
        )
        val requestWithCache =
          Request
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  2. mockwebserver/api/mockwebserver3.api

    	public final fun getThrottlePeriodNanos ()J
    	public final fun getTrailers ()Lokhttp3/Headers;
    	public final fun getTrailersDelayNanos ()J
    	public final fun getWebSocketListener ()Lokhttp3/WebSocketListener;
    	public final fun newBuilder ()Lmockwebserver3/MockResponse$Builder;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class mockwebserver3/MockResponse$Builder : java/lang/Cloneable {
    	public fun <init> ()V
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

     *     .addInterceptor(new HttpLoggingInterceptor())
     *     .cache(new Cache(cacheDir, cacheSize))
     *     .build();
     * ```
     *
     * ## Customize Your Client With newBuilder()
     *
     * You can customize a shared OkHttpClient instance with [newBuilder]. This builds a client that
     * shares the same connection pool, thread pools, and configuration. Use the builder methods to
     * add configuration to the derived client for a specific purpose.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 51.5K bytes
    - Click Count (0)
  4. docs/recipes.md

    All the HTTP client configuration lives in `OkHttpClient` including proxy settings, timeouts, and caches. When you need to change the configuration of a single call, call `OkHttpClient.newBuilder()`. This returns a builder that shares the same connection pool, dispatcher, and configuration with the original client. In the example below, we make one request with a 500 ms timeout and another with a 3000 ms timeout.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

            append("; httponly")
          }
    
          if (sameSite != null) {
            append("; samesite=").append(sameSite)
          }
    
          return toString()
        }
      }
    
      fun newBuilder(): Builder = Builder(this)
    
      /**
       * Builds a cookie. The [name], [value], and [domain] values must all be set before calling
       * [build].
       */
      class Builder() {
        private var name: String? = null
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            Model model = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .build(org.apache.maven.api.model.Build.newBuilder()
                            .sourceDirectory("correct")
                            .resources(List.of(org.apache.maven.api.model.Resource.newBuilder()
                                    .directory("${project.build.sourceDirectory}")
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/util/ErrorToWarnRewritePolicyTest.java

            LogEvent event1 = Log4jLogEvent.newBuilder()
                    .setLoggerName("test.logger.sub")
                    .setLevel(Level.ERROR)
                    .setMessage(new SimpleMessage("test message 1"))
                    .build();
    
            LogEvent event2 = Log4jLogEvent.newBuilder()
                    .setLoggerName("another.logger.sub")
                    .setLevel(Level.ERROR)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivatorTest.java

            activator = new OperatingSystemProfileActivator();
        }
    
        private Profile newProfile(ActivationOS.Builder activationBuilder) {
            Activation a = Activation.newBuilder().os(activationBuilder.build()).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
        private Properties newProperties(String osName, String osVersion, String osArch) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        LoadingCache<String, Integer> cache =
            CacheBuilder.newBuilder().removalListener(countingRemovalListener()).build(loader);
    
        assertThat(cache.getUnchecked("one")).isEqualTo(1);
        assertThat(cache.size()).isEqualTo(1);
      }
    
      public void testInitialCapacity_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        LoadingCache<String, Integer> cache =
            CacheBuilder.newBuilder().removalListener(countingRemovalListener()).build(loader);
    
        assertThat(cache.getUnchecked("one")).isEqualTo(1);
        assertThat(cache.size()).isEqualTo(1);
      }
    
      public void testInitialCapacity_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top