Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 275 for envoyer (0.14 seconds)

  1. docs/zh-hant/docs/tutorial/testing.md

    關於如何把資料傳給後端(使用 `httpx` 或 `TestClient`),更多資訊請參考 [HTTPX 文件](https://www.python-httpx.org)。
    
    /// info
    
    請注意,`TestClient` 接收的是可轉為 JSON 的資料,而不是 Pydantic models。
    
    如果你的測試裡有一個 Pydantic model,並想在測試時把它的資料送給應用,你可以使用[JSON 相容編碼器](encoder.md)中介紹的 `jsonable_encoder`。
    
    ///
    
    ## 執行 { #run-it }
    
    接下來,你只需要安裝 `pytest`。
    
    請先建立並啟用一個[虛擬環境](../virtual-environments.md),然後安裝,例如:
    
    <div class="termy">
    
    ```console
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/stream-json-lines.md

    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}
    
    ### Sem tipo de retorno { #no-return-type }
    
    Você também pode omitir o tipo de retorno. O FastAPI então usará o [`jsonable_encoder`](./encoder.md) para converter os dados em algo que possa ser serializado para JSON e depois enviá-los como JSON Lines.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[33:36] hl[34] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/fr/docs/advanced/settings.md

    #### Détails techniques de `lru_cache` { #lru-cache-technical-details }
    
    `@lru_cache` modifie la fonction qu'il décore pour renvoyer la même valeur que celle qui a été retournée la première fois, au lieu de la recalculer en exécutant le code de la fonction à chaque fois.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/server-sent-events.md

    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    ### Без типу повернення { #no-return-type }
    
    Можна також опустити тип повернення. FastAPI використає [`jsonable_encoder`](./encoder.md), щоб конвертувати дані і надіслати їх.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[34:37] hl[35] *}
    
    ## `ServerSentEvent` { #serversentevent }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/stream-json-lines.md

    因为这个函数不是异步的,合适的返回类型是 `Iterable[Item]`:
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}
    
    ### 无返回类型 { #no-return-type }
    
    你也可以省略返回类型。此时 FastAPI 会使用 [`jsonable_encoder`](./encoder.md) 将数据转换为可序列化为 JSON 的形式,然后以 JSON Lines 发送。
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[33:36] hl[34] *}
    
    ## 服务器发送事件(SSE) { #server-sent-events-sse }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/stream-json-lines.md

    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}
    
    ### Kein Rückgabetyp { #no-return-type }
    
    Sie können den Rückgabetyp auch weglassen. FastAPI verwendet dann den [`jsonable_encoder`](./encoder.md), um die Daten in etwas zu konvertieren, das zu JSON serialisiert werden kann, und sendet sie anschließend als JSON Lines.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[33:36] hl[34] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. docs/ko/docs/tutorial/server-sent-events.md

    이 경우 함수가 async가 아니므로 적절한 반환 타입은 `Iterable[Item]`입니다:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    ### 반환 타입 없음 { #no-return-type }
    
    반환 타입을 생략할 수도 있습니다. FastAPI는 [`jsonable_encoder`](./encoder.md)를 사용해 데이터를 변환하고 전송합니다.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[34:37] hl[35] *}
    
    ## `ServerSentEvent` { #serversentevent }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:56:39 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  8. internal/bucket/lifecycle/filter.go

    	cachedTags map[string]string
    }
    
    // MarshalXML - produces the xml representation of the Filter struct
    // only one of Prefix, And and Tag should be present in the output.
    func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if !f.set {
    		return nil
    	}
    
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	switch {
    	case !f.And.isEmpty():
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Sep 04 17:01:26 GMT 2024
    - 6.2K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/EqualsTester.java

                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
       * Since it is a private inner class, the invoker can never pass in an instance to the tester
       */
      private enum NotAnInstance {
        EQUAL_TO_NOTHING;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/cors.md

    Le navigateur enverra alors une requête HTTP `OPTIONS` au backend `:80`, et si le backend envoie les en-têtes appropriés autorisant la communication depuis cette origine différente (`http://localhost:8080`), alors le navigateur `:8080` permettra au JavaScript du frontend d’envoyer sa requête au backend `:80`.
    
    Pour y parvenir, le backend `:80` doit disposer d’une liste « d’origines autorisées ».
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top