Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 340 for 123 (0.01 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh/docs/advanced/stream-data.md

    ## 使用 `yield` 的 `StreamingResponse` { #a-streamingresponse-with-yield }
    
    如果你在*路径操作函数*中声明 `response_class=StreamingResponse`,你就可以使用 `yield` 依次发送每个数据块。
    
    {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *}
    
    FastAPI 会将每个数据块原样交给 `StreamingResponse`,不会尝试将其转换为 JSON 或做类似处理。
    
    ### 非 async 的*路径操作函数* { #non-async-path-operation-functions }
    
    你也可以使用常规的 `def` 函数(不带 `async`),并以相同方式使用 `yield`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            buildHeader(buf, headerStart, NtStatus.NT_STATUS_SUCCESS, 0x0001, 0xCAFEBABECAFEF00DL);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 1, 2, 3 };
            int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8;
            int sessionFlags = 0; // not guest/null
            buildSessionSetupBody(buf, headerStart, bodyStart, sessionFlags, secBufOffset, blob);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Chars.java

      }
    
      /**
       * Returns a string containing the supplied {@code char} values separated by {@code separator}.
       * For example, {@code join("-", '1', '2', '3')} returns the string {@code "1-2-3"}.
       *
       * @param separator the text that should appear between consecutive values in the resulting string
       *     (but not at the start or end)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  4. docs/uk/docs/advanced/stream-data.md

    Якщо ви оголосите `response_class=StreamingResponse` у вашій функції операції шляху, ви можете використовувати `yield`, щоб послідовно надсилати кожний фрагмент даних.
    
    {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *}
    
    FastAPI передаватиме кожний фрагмент даних до `StreamingResponse` як є; він не намагатиметься перетворити його на JSON чи щось подібне.
    
    ### Не-async функції операції шляху { #non-async-path-operation-functions }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

          }
        }
        return flip(max);
      }
    
      /**
       * Returns a string containing the supplied unsigned {@code int} values separated by {@code
       * separator}. For example, {@code join("-", 1, 2, 3)} returns the string {@code "1-2-3"}.
       *
       * @param separator the text that should appear between consecutive values in the resulting string
       *     (but not at the start or end)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/base/Stopwatch.java

     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * Duration duration = stopwatch.elapsed();
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }
     *
     * <p>The state-changing methods are not idempotent; it is an error to start or stop a stopwatch
     * that is already in the desired state.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testColumnSetPartialOverlap() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 2, 'c', "bar", 3, 'd');
        assertThat(table.columnKeySet()).containsExactly(1, 2, 3);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerInstance() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 2, 'c', "bar", 3, 'd');
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertEquals(0, response.getResponseLength());
        }
    
        @Test
        void testMultipleReads() throws SMBProtocolDecodingException {
            // First read
            byte[] firstData = { 1, 2, 3 };
            byte[] buffer1 = new byte[10];
            System.arraycopy(firstData, 0, buffer1, 0, firstData.length);
            response.readDataWireFormat(buffer1, 0, firstData.length);
    
            // Verify first data
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Multimap.java

     * So, using the multimap shown above as an example, the {@link #size} is {@code 3}, not {@code 2},
     * and the {@link #values} collection is {@code [1, 2, 3]}, not {@code [[1, 2], [3]]}. For those
     * times when the first style is more useful, use the multimap's {@link #asMap} view (or create a
     * {@code Map<K, Collection<V>>} in the first place).
     *
     * <h3>Example</h3>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap.put("bar", 1);
        multimap.putAll("foo", asList(-1, 2, 4));
        multimap.putAll("bar", asList(2, 3));
        multimap.put("foo", 1);
        assertThat(multimap.toString()).isEqualTo("{foo=[3, -1, 2, 4, 1], bar=[1, 2, 3]}");
      }
    
      public void testOrderingReadOnly() {
        SetMultimap<String, Integer> multimap = initializeMultimap5();
        assertOrderingReadOnly(multimap);
      }
    
      public void testOrderingUnmodifiable() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
Back to Top