Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 891 - 900 of 2,119 for Info (0.03 seconds)

  1. docs/zh/docs/tutorial/server-sent-events.md

    你可以使用**服务器发送事件**(SSE)向客户端流式发送数据。
    
    这类似于[流式传输 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` 等“字段”的小文本块,以空行分隔。
    
    看起来像这样:
    
    ```
    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)
  2. generics.go

    	"gorm.io/gorm/schema"
    )
    
    type result struct {
    	Result       sql.Result
    	RowsAffected int64
    	Error        error
    }
    
    func (info *result) ModifyStatement(stmt *Statement) {
    	info.Result = nil
    	info.RowsAffected = 0
    	info.Error = nil
    	stmt.Result = info
    }
    
    // Build implements clause.Expression interface
    func (result) Build(clause.Builder) {
    }
    
    func WithResult() *result {
    	return &result{}
    }
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 26K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/body-multiple-params.md

    由於預設情況下,單一值會被解讀為查詢參數,你不必明確使用 `Query`,直接這樣寫即可:
    
    ```Python
    q: str | None = None
    ```
    
    例如:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    /// info | 注意
    
    `Body` 也具有與 `Query`、`Path` 以及之後你會看到的其他工具相同的額外驗證與中繼資料參數。
    
    ///
    
    ## 嵌入單一 Body 參數 { #embed-a-single-body-parameter }
    
    假設你只有一個來自 Pydantic 模型 `Item` 的單一 `item` Body 參數。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/metadata.md

    /// tip | 提示
    
    不必为你使用的所有标签都添加元数据。
    
    ///
    
    ### 使用你的标签 { #use-your-tags }
    
    将 `tags` 参数和*路径操作*(以及 `APIRouter`)一起使用,将其分配给不同的标签:
    
    {* ../../docs_src/metadata/tutorial004_py310.py hl[21,26] *}
    
    /// info | 信息
    
    阅读更多关于标签的信息[路径操作配置](path-operation-configuration.md#tags)。
    
    ///
    
    ### 查看文档 { #check-the-docs }
    
    如果你现在查看文档,它们会显示所有附加的元数据:
    
    <img src="/img/tutorial/metadata/image02.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  5. cmd/global-heal.go

    			healingLogIf(ctx, err)
    		}
    	}
    
    	info, err := tracker.disk.DiskInfo(ctx, DiskInfoOptions{})
    	if err != nil {
    		return fmt.Errorf("unable to get disk information before healing it: %w", err)
    	}
    
    	var numHealers uint64
    
    	if numCores := uint64(runtime.GOMAXPROCS(0)); info.NRRequests > numCores {
    		numHealers = numCores / 4
    	} else {
    		numHealers = info.NRRequests / 4
    	}
    	if numHealers < 4 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 04 13:49:12 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                return "cause=[Because this test isn't done]";
              }
            };
        assertThat(testFuture.toString())
            .matches(
                "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]");
        TimeoutException e = assertThrows(TimeoutException.class, () -> testFuture.get(1, NANOSECONDS));
        assertThat(e).hasMessageThat().contains("1 nanoseconds");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/response-status-code.md

    /// note | 備考
    
    `status_code`は「デコレータ」メソッド(`get`、`post`など)のパラメータであることに注意してください。すべてのパラメータやボディのように、*path operation function*のものではありません。
    
    ///
    
    `status_code`パラメータはHTTPステータスコードを含む数値を受け取ります。
    
    /// info | 情報
    
    `status_code`は代わりに、Pythonの[`http.HTTPStatus`](https://docs.python.org/3/library/http.html#http.HTTPStatus)のように、`IntEnum`を受け取ることもできます。
    
    ///
    
    これは:
    
    * レスポンスでステータスコードを返します。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            andx.useUnicode = useUnicode;
            if (andx instanceof AndXServerMessageBlock) {
    
                /*
                 * A word about communicating header info to andx smbs
                 *
                 * This is where we recursively invoke the provided andx smb
                 * object to write it's parameter words and bytes to our outgoing
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/cors.md

    在這種情況下,中介軟體會攔截傳入的請求並回應適當的 CORS 標頭,並回傳 `200` 或 `400`(僅供資訊參考)。
    
    ### 簡單請求 { #simple-requests }
    
    任何帶有 `Origin` 標頭的請求。在這種情況下,中介軟體會如常將請求往下傳遞,但會在回應上加入適當的 CORS 標頭。
    
    ## 更多資訊 { #more-info }
    
    想進一步了解 <abbr title="Cross-Origin Resource Sharing - 跨來源資源共用">CORS</abbr>,請參考 [Mozilla 的 CORS 文件](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)。
    
    /// note | 技術細節
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/body.md

    To declare a **request** body, you use [Pydantic](https://docs.pydantic.dev/) models with all their power and benefits.
    
    /// info
    
    To send data, you should use one of: `POST` (the more common), `PUT`, `DELETE` or `PATCH`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top