Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 939 for Executes (0.05 seconds)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

        val request =
          Request
            .Builder()
            .url("https://httpbin.org/anything")
            .put(path.asRequestBody(fileSystem, MEDIA_TYPE_JSON))
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          fileSystem.sink(path).use {
            response.body.source().readAll(it)
          }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

      private var httpClient = HttpClients.createDefault()
    
      @After fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get() {
        val request = HttpGet("https://google.com/robots.txt")
    
        httpClient.execute(request).use { response ->
          assertEquals(200, response.code)
          // TODO enable ALPN later
          assertEquals(HttpVersion.HTTP_1_1, response.version)
        }
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java

      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          System.out.println(response.request().header("Date"));
        }
      }
    
      static class CurrentDateInterceptor implements Interceptor {
        @Override public Response intercept(Chain chain) throws IOException {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 31 15:32:50 GMT 2018
    - 1.8K bytes
    - Click Count (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PostString.java

            .url("https://api.github.com/markdown/raw")
            .post(RequestBody.create(postBody, MEDIA_TYPE_MARKDOWN))
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 1.7K bytes
    - Click Count (0)
  5. Jenkinsfile

    }
    
    /**
     * To other developers, if you are using this method above, please use the following syntax.
     * By default this method does NOT execute ITs anymore, just "install".
     *
     * mavenBuild("<jdk>", "<profiles> <goals> <plugins> <properties>"
     *
     * @param jdk the jdk tool name (in jenkins) to use for this build
     * @param extraArgs extra command line args
     */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 10 12:31:48 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/timer/HotThreadMonitorTarget.java

                        .setInterval(interval)
                        .setThreads(threads)
                        .setTimeout(timeout)
                        .setType(type)
                        .execute()
                        .actionGet(timeout);
                append(buf, "cluster_name", () -> response.getClusterName().value()).append(',');
                final String hotThreads = response.getNodesMap().entrySet().stream().map(e -> {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(ProgressRequestBody(requestBody, progressListener))
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
          println(response.body.string())
        }
      }
    
      private class ProgressRequestBody(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 17:01:12 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java

                    lifeCycleDependencyResolver,
                    eventCatapult,
                    mojosExecutionStrategy,
                    messageBuilderFactory);
        }
    
        @Override
        public void execute(MavenSession session, List<MojoExecution> mojoExecutions) throws LifecycleExecutionException {
            executions.addAll(mojoExecutions);
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. android-test/src/androidTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

        val client = clientBuilder.build()
    
        val request =
          Request
            .Builder()
            .url("https://valid-isrgrootx1.letsencrypt.org/robots.txt")
            .build()
        client.newCall(request).execute().use { response ->
          assertThat(response.code).isEqualTo(404)
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_2)
        }
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutionException.java

                MojoExecution execution,
                MavenProject project,
                Throwable cause) {
            MessageBuilder buffer = messageBuilderFactory.builder(256);
    
            buffer.a("Failed to execute goal");
    
            if (execution != null) {
                buffer.a(' ');
                buffer.mojo(execution.getGroupId()
                        + ':'
                        + execution.getArtifactId()
                        + ':'
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 3.5K bytes
    - Click Count (0)
Back to Top