Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 206 for void (0.15 sec)

  1. docs/features/events.md

        printEvent("callEnd");
      }
    
      @Override public void dnsStart(Call call, String domainName) {
        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  2. mockwebserver-junit5/README.md

    ```
    class MyTest {
      @Test
      void test(MockWebServer server) {
        ...
      }
    }
    ```
    
    Alternately you may add the [MockWebServer] as a constructor parameter:
    
    ```
    class MyTest {
      private final MockWebServer server;
    
      MyTest(MockWebServer server) {
        this.server = server;
      }
    
      @Test
      void test() {
        ...
      }
    }
    ```
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. docs/features/https.md

                  new CertificatePinner.Builder()
                      .add("publicobject.com", "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=")
                      .build())
              .build();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  4. mockwebserver/README.md

    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ```java
    public void test() throws Exception {
      // Create a MockWebServer. These are lean enough that you can create a new
      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
      // Schedule some responses.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  5. docs/recipes.md

        ```java
          private final OkHttpClient client = new OkHttpClient();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("http://publicobject.com/helloworld.txt")
                .build();
    
            client.newCall(request).enqueue(new Callback() {
              @Override public void onFailure(Call call, IOException e) {
                e.printStackTrace();
              }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          setupPlatform()
        }
    
        override fun afterEach(context: ExtensionContext) {
          resetPlatform()
        }
    
        override fun interceptTestMethod(
          invocation: InvocationInterceptor.Invocation<Void>,
          invocationContext: ReflectiveInvocationContext<Method>,
          extensionContext: ExtensionContext,
        ) {
          var failed = false
          try {
            invocation.proceed()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

    private
    fun binaryNameOfInternalName(internalName: String): String =
        Type.getObjectType(internalName).className
    
    
    fun sourceNameOfBinaryName(binaryName: String): String =
        when (binaryName) {
            "void" -> "Unit"
            "?" -> "*"
            in mappedTypeStrings.keys -> mappedTypeStrings[binaryName]!!
            in primitiveTypeStrings.keys -> primitiveTypeStrings[binaryName]!!
            else -> binaryName.replace('$', '.')
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Feb 06 19:56:10 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

                            public abstract class Task {
                                public String getSourceCompatibility() {
                                    return "";
                                }
                                public void setSourceCompatibility(String value) {
                                }
                            }
                        """
                    )
                },
                v2 = {
                    withFile(
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 20.2K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        results.add(task)
        task.run()
      }
    
      /** Returns a task that processes both request and response from [stream]. */
      private fun serviceStreamTask(stream: Stream): FutureTask<Void> {
        return FutureTask<Void> {
          stream.requestBody.use {
            stream.responseBody.use {
              while (true) {
                val action = actions.poll() ?: break
                action(stream)
              }
            }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirMetadataCalculator.kt

                            }
                        }
                        fir.getter?.let { getter ->
                            methods.singleOrNull { it.returnType != PsiType.VOID }?.let {
                                bindings.put(METHOD_FOR_FIR_FUNCTION, getter, Method(it.name, getAsmMethodSignatureWithCorrection(it)))
                            }
                        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 09:19:07 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top