Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 167 for NewBuilder (0.09 sec)

  1. okhttp/src/test/java/okhttp3/JSSETest.kt

              "TLSv1",
            )
        }
      }
    
      @Test
      @Disabled
      fun testFacebook() {
        val sessionIds = mutableListOf<String>()
    
        assumeNetwork()
    
        client =
          client.newBuilder()
            .eventListenerFactory(
              clientTestRule.wrap(
                object : EventListener() {
                  override fun connectionAcquired(
                    call: Call,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

            .code(401)
            .build(),
        )
        newEventSource()
        listener.assertFailure(null)
      }
    
      @Test
      fun fullCallTimeoutDoesNotApplyOnceConnected() {
        client =
          client.newBuilder()
            .callTimeout(250, TimeUnit.MILLISECONDS)
            .build()
        server.enqueue(
          MockResponse.Builder()
            .bodyDelay(500, TimeUnit.MILLISECONDS)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheRefreshTest.java

      public void testAutoRefresh() {
        FakeTicker ticker = new FakeTicker();
        IncrementingLoader loader = incrementingLoader();
        LoadingCache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .refreshAfterWrite(3, MILLISECONDS)
                .expireAfterWrite(6, MILLISECONDS)
                .lenientParsing()
                .ticker(ticker)
                .build(loader);
        int expectedLoads = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

            props.put("mockito.version", "1.10.19");
            props.put("hamcret.version", "2.1");
            props.put("lombok.version", "1.18.6");
            props.put("junit.version", "4.12");
            Model model = Model.newBuilder(true).properties(props).build();
            String xml = toXml(model);
    
            for (int i = 0; i < 10; i++) {
                String newStr = toXml(fromXml(xml));
                assertEquals(newStr, xml);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

                // (has consequences in inheritance algorithm since getProjectDirectory() returns null)
                parent = Model.newBuilder(parent, true).pomFile(null).build();
                child = Model.newBuilder(child, true).pomFile(null).build();
            }
    
            SimpleProblemCollector problems = new SimpleProblemCollector();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

              System.out.println("Challenges: " + response.challenges());
              String credential = Credentials.basic("jesse", "password1");
              return response.request().newBuilder()
                  .header("Authorization", credential)
                  .build();
            })
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/FessConfigImpl.java

            return new ObjectiveProperties(resourcePath) { // for e.g. checking existence and filtering value
                Cache<String, String> cache = CacheBuilder.newBuilder().build();
    
                @Override
                public String get(final String propertyKey) {
                    final String plainValue = getFromCache(propertyKey);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java

          this.host = host;
        }
    
        @Override public Response intercept(Chain chain) throws IOException {
          Request request = chain.request();
          if (request.url().host().equals(host)) {
            request = request.newBuilder()
                .header("Authorization", credentials)
                .build();
          }
          return chain.proceed(request);
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Nov 05 07:46:46 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        component: Component,
      ) {
        val builder = "http://host/".toHttpUrl().newBuilder()
        assertFailsWith<IllegalArgumentException> {
          component[builder] = codePointString
        }
      }
    
      private fun testPunycode(
        codePointString: String,
        component: Component,
      ) {
        val builder = "http://host/".toHttpUrl().newBuilder()
        component[builder] = codePointString
        val url = builder.build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. 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.
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
Back to top