- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 5,876 for what (0.06 seconds)
-
docs/zh/docs/tutorial/server-sent-events.md
这类似于[流式传输 JSON Lines](stream-json-lines.md),但使用 `text/event-stream` 格式,浏览器原生通过 [`EventSource` API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) 支持。 /// info | 信息 新增于 FastAPI 0.135.0。 /// ## 什么是服务器发送事件? { #what-are-server-sent-events } SSE 是一种通过 HTTP 从服务器向客户端流式传输数据的标准。 每个事件是一个带有 `data`、`event`、`id` 和 `retry` 等“字段”的小文本块,以空行分隔。 看起来像这样: ``` data: {"name": "Portal Gun", "price": 999.99}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/stream-json-lines.md
# 流式传输 JSON Lines { #stream-json-lines } 当你想以“流”的方式发送一系列数据时,可以使用 JSON Lines。 /// info | 信息 新增于 FastAPI 0.134.0。 /// ## 什么是流 { #what-is-a-stream } “流式传输”数据意味着你的应用会在整段数据全部准备好之前,就开始把每个数据项发送给客户端。 也就是说,它会先发送第一个数据项,客户端会接收并开始处理它,而此时你的应用可能还在生成下一个数据项。 ```mermaid sequenceDiagram participant App participant Client App->>App: Produce Item 1 App->>Client: Send Item 1 App->>App: Produce Item 2Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/en/docs/advanced/stream-data.md
You can create a custom sub-class of `StreamingResponse` that sets the `Content-Type` header to the type of data you're streaming. For example, you can create a `PNGStreamingResponse` that sets the `Content-Type` header to `image/png` using the `media_type` attribute:
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) -
ci/devinfra/docker/windows/Dockerfile
# NOTE: This Dockerfile is no longer in use. # It is kept just in case, but it's recommended to use the 2022 version, # and that is what internal CI uses as well. # This Dockerfile creates an image that has: # - the correct MTU setting for networking from inside the container to work. # - Visual Studio 2022 Build Tools # - MSVC 14.39 # - LLVM/Clang 18.1.4 # - MSYS2 + curl, git, patch, vim, unzip, zip # - Python 3.12.3 # - Bazelisk 1.19.0
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Jan 17 16:35:57 GMT 2025 - 8.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java
return new ThreadFactory() { @Override public Thread newThread(Runnable runnable) { Thread thread = backingThreadFactory.newThread(runnable); // TODO(b/139735208): Figure out what to do when the factory returns null. requireNonNull(thread); if (nameFormat != null) { // requireNonNull is safe because we create `count` if (and only if) we have a nameFormat.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 9.2K bytes - Click Count (0) -
src/bufio/scan.go
// data and a flag, atEOF, that reports whether the [Reader] has no more data // to give. The return values are the number of bytes to advance the input // and the next token to return to the user, if any, plus an error, if any. // // Scanning stops if the function returns an error, in which case some of // the input may be discarded. If that error is [ErrFinalToken], scanning
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed May 21 18:05:26 GMT 2025 - 14.2K bytes - Click Count (0) -
docs/ftp/README.md
### Custom Algorithms (SFTP) Custom algorithms can be specified via command line parameters. Algorithms are comma separated. Note that valid values does not in all cases represent default values. `--sftp=pub-key-algos=...` specifies the supported client public key authentication algorithms. Note that this doesn't include certificate types since those use the underlying algorithm. This list is sent to the client if
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 07 06:41:25 GMT 2024 - 7.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ContiguousSet.java
* ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers()) * } * * <p>Note that because bounded ranges over {@code int} and {@code long} values are so common, this * particular example can be written as just: * * {@snippet : * ContiguousSet.closed(5, 42) * } * * <p><b>Warning:</b> Be extremely careful what you do with conceptually large instances (such as
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
// Create buffer with exact decode size byte[] tempBuffer = new byte[50]; original.encode(tempBuffer, 0); // Copy only the first 36 bytes (what decode reads) byte[] buffer = new byte[36]; System.arraycopy(tempBuffer, 0, buffer, 0, 36); // Decode int bytesRead = fileBasicInfo.decode(buffer, 0, 36); // VerifyCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ContiguousSet.java
* ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers()) * } * * <p>Note that because bounded ranges over {@code int} and {@code long} values are so common, this * particular example can be written as just: * * {@snippet : * ContiguousSet.closed(5, 42) * } * * <p><b>Warning:</b> Be extremely careful what you do with conceptually large instances (such as
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.9K bytes - Click Count (0)