- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 79 for Chunk (0.07 seconds)
-
docs/en/docs/advanced/stream-data.md
If you declare a `response_class=StreamingResponse` in your *path operation function*, you can use `yield` to send each chunk of data in turn. {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *} FastAPI will give each chunk of data to the `StreamingResponse` as is, it won't try to convert it to JSON or anything similar. ### Non-async *path operation functions* { #non-async-path-operation-functions }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteProcessor.java
* * <p>{@link #processBytes} will be called for each chunk of data that is read, and should return * {@code false} when you want to stop processing. * * @author Chris Nokleberg * @since 1.0 */ @DoNotMock("Implement it normally") @J2ktIncompatible @GwtIncompatible public interface ByteProcessor<T extends @Nullable Object> { /** * This method will be called for each chunk of bytes in an input stream. The implementationCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/api/chat/ChatApiManagerTest.java
final PrintWriter writer = new PrintWriter(stringWriter); chatApiManager.sendSseEvent(writer, "chunk", Map.of("content", "Hello ")); final String output = stringWriter.toString(); assertTrue(output.contains("event: chunk")); assertTrue(output.contains("\"content\":\"Hello \"")); } @Test public void test_sendSseEvent_error() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 14 01:39:16 GMT 2026 - 35K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/stream-data.md
但如果你想串流純二進位資料或字串,以下是做法。 /// info 已在 FastAPI 0.134.0 新增。 /// ## 使用情境 { #use-cases } 當你想串流純字串時可以用這個機制,例如直接轉發來自 AI LLM 服務的輸出。 你也可以用它來串流大型二進位檔案,邊讀邊將每個區塊(chunk)串流出去,而不必一次把整個檔案載入記憶體。 你也可以用同樣方式串流視訊或音訊,甚至可以在處理的同時即時產生並傳送。 ## 使用 `yield` 的 `StreamingResponse` { #a-streamingresponse-with-yield } 如果在你的路徑操作函式中宣告 `response_class=StreamingResponse`,就可以用 `yield` 逐一送出每個資料區塊。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
public SrvCopyChunkCopyResponse() { } private int chunksWritten; private int chunkBytesWritten; private int totalBytesWritten; /** * Gets the number of bytes written in the last chunk * @return the chunkBytesWritten */ public int getChunkBytesWritten() { return this.chunkBytesWritten; } /** * Gets the number of chunks successfully written
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/PushObserver.kt
* @param last when true, there is no response data. */ fun onHeaders( streamId: Int, responseHeaders: List<Header>, last: Boolean, ): Boolean /** * A chunk of response data corresponding to a pushed request. This data must either be read or * skipped. * * @param streamId server-initiated stream ID: an even number.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 10.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java
/** * Function code to transceive data on a named pipe */ public static final int FSCTL_PIPE_TRANSCEIVE = 0x0011C017; /** * Function code for server-side copy chunk operation */ public static final int FSCTL_SRV_COPYCHUNK = 0x001440F2; /** * Function code to enumerate volume shadow copy snapshots */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9.4K bytes - Click Count (0) -
android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixTrie.java
throw new UnsupportedOperationException(); } @Override public String toString() { StringBuilder sb = new StringBuilder(length); for (CharSequence chunk : chunks) { sb.append(chunk); } return sb.toString(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 21:21:59 GMT 2026 - 9.1K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/PrimitiveSink.java
/** * Puts an array of bytes into this sink. * * @param bytes a byte array * @return this instance */ @CanIgnoreReturnValue PrimitiveSink putBytes(byte[] bytes); /** * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written, * {@code bytes[off + len - 1]} is the last. * * @param bytes a byte array * @param off the start offset in the array
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3.9K bytes - Click Count (0)