Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 216 for Didn (0.2 sec)

  1. android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java

     * identical to the original.
     *
     * @author Chris Povirk
     */
    /*
     * The whole thing is really @GwtIncompatible, but GwtJUnitConvertedTestModule doesn't have a
     * parameter for non-GWT, non-test files, and it didn't seem worth adding one for this unusual case.
     */
    @GwtCompatible(emulated = true)
    final class LenientSerializableTester {
      /*
       * TODO(cpovirk): move this to c.g.c.testing if we allow for c.g.c.annotations dependencies so
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 04 15:33:27 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     *   if (challenge.scheme().equalsIgnoreCase("OkHttp-Preemptive")) {
     *     return response.request().newBuilder()
     *         .header("Proxy-Authorization", "secret")
     *         .build();
     *   }
     * }
     * return null; // Didn't find a preemptive auth scheme.
     * ```
     *
     * ## Reactive Authentication
     *
     * Implementations authenticate by returning a follow-up request that includes an authorization
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

            getMultiset().elementSet().contains(e0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testEntrySet_contains() {
        assertTrue(
            "multiset.entrySet() didn't contain [present, 1]",
            getMultiset().entrySet().contains(Multisets.immutableEntry(e0(), 1)));
      }
    
      public void testEntrySet_contains_count0() {
        assertFalse(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CloseablesTest.java

      private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown)
          throws IOException {
        try {
          Closeables.close(closeable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
            fail("Threw exception");
          }
        }
        verify(closeable).close();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/additional-status-codes.md

    For example, let's say that you want to have a *path operation* that allows to update items, and returns HTTP status codes of 200 "OK" when successful.
    
    But you also want it to accept new items. And when the items didn't exist before, it creates them, and returns an HTTP status code of 201 "Created".
    
    To achieve that, import `JSONResponse`, and return your content there directly, setting the `status_code` that you want:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe_test.go

    	}
    
    	if c.expectedString != "" && !strings.Contains(output, c.expectedString) {
    		t.Fatalf("Output didn't match for 'istioctl %s'\n got %v\nwant: %v", strings.Join(c.args, " "), output, c.expectedString)
    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          check(!closed) { "closed" }
          if (bytesRemaining == 0L) return -1
    
          val read = super.read(sink, minOf(bytesRemaining, byteCount))
          if (read == -1L) {
            carrier.noNewExchanges() // The server didn't supply the promised content length.
            val e = ProtocolException("unexpected end of stream")
            responseBodyComplete()
            throw e
          }
    
          bytesRemaining -= read
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. istioctl/pkg/proxyconfig/proxyconfig_test.go

    	}
    
    	if c.expectedString != "" && !strings.Contains(output, c.expectedString) {
    		t.Fatalf("Output didn't match for '%s %s'\n got %v\nwant: %v", cmd.Name(), strings.Join(c.args, " "), output, c.expectedString)
    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CloseablesTest.java

      private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown)
          throws IOException {
        try {
          Closeables.close(closeable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
            fail("Threw exception");
          }
        }
        verify(closeable).close();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

            getMultiset().elementSet().contains(e0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testEntrySet_contains() {
        assertTrue(
            "multiset.entrySet() didn't contain [present, 1]",
            getMultiset().entrySet().contains(Multisets.immutableEntry(e0(), 1)));
      }
    
      public void testEntrySet_contains_count0() {
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
Back to top