Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 541 - 550 of 959 for ejecute (0.06 seconds)

  1. module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java

        server.start();
    
        // Just check we can run code that depends on OkHttp types
        Call call = OkHttpCaller.callOkHttp(server.url("/"));
    
        try (Response response = call.execute();) {
          System.out.println(response.body().string());
        }
      }
    
      @Test
      public void testModules() {
        Module okHttpModule = OkHttpClient.class.getModule();
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RecordingExecutor.kt

    /**
     * A fake executor for testing that never executes anything! Instead, it just keeps track of what's
     * been enqueued.
     */
    internal class RecordingExecutor(
      private val dispatcherTest: DispatcherTest,
    ) : AbstractExecutorService() {
      private var shutdown: Boolean = false
      private val calls = mutableListOf<RealCall.AsyncCall>()
    
      override fun execute(command: Runnable) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Oct 06 18:34:01 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java

          }
        };
    
        Request request = new Request.Builder()
            .url("https://api.github.com/markdown/raw")
            .post(requestBody)
            .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: Fri Jul 06 03:18:15 GMT 2018
    - 2.1K bytes
    - Click Count (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

        }, 1, TimeUnit.SECONDS)
    
        System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f)
        try {
          call.execute().use { response ->
            System.out.printf(
              "%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f,
              response,
            )
          }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/advanced-dependencies.md

    Using `Depends(scope="function")`, the exit code after `yield` is executed right after the *path operation function* is finished, before the response is sent back to the client.
    
    And when using `Depends(scope="request")` (the default), the exit code after `yield` is executed after the response is sent.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  6. CLAUDE.md

    3. **Resource Management**: `CurlResponse` implements `Closeable` for try-with-resources
    4. **Async Support**: Both synchronous (`executeSync()`) and asynchronous (`execute()`) execution modes
    
    ## Technical Details
    
    - **Java Version**: 17+
    - **Dependencies**:
      - Apache Commons IO 2.19.0 (runtime)
      - JUnit 4.13.2 (test)
    - **Module Name**: `org.codelibs.curl4j`
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Mon Nov 24 03:10:07 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        void testWriteBytesWireFormat() throws UnsupportedEncodingException {
            byte[] expectedBytes = DIALECTS.getBytes("ASCII");
            byte[] dst = new byte[expectedBytes.length];
            int dstIndex = 0;
    
            // Execute the method to write bytes
            int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex);
    
            // Verify the number of bytes written
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

    @NullUnmarked
    public class CacheLoaderTest extends TestCase {
    
      private static class QueuingExecutor implements Executor {
        private final Deque<Runnable> tasks = new ArrayDeque<>();
    
        @Override
        public void execute(Runnable task) {
          tasks.add(task);
        }
    
        private void runNext() {
          tasks.removeFirst().run();
        }
      }
    
      public void testAsyncReload() throws Exception {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepository.java

                cl.call(new Object[]{entry.getKey(), entry.getValue()});
            }
        }
    
        public void each(Action<? super T> action) {
            for (T t : classes.values()) {
                action.execute(t);
            }
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaData.java

                return overriddenMethod.getOwnerClass().findDeclaredProperty(name);
            }
    
            return null;
        }
    
        @Override
        public void visitTypes(Action<TypeMetaData> action) {
            action.execute(type);
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 3K bytes
    - Click Count (0)
Back to Top