Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 801 - 810 of 896 for FoO (0.02 seconds)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "importance": 2,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
                "tax": None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  2. docs_src/query_params_str_validations/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 239 bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val stream = connection.newStream(headerEntries("a", "android"), true)
        stream.enqueueTrailers(headersOf("foo", "bar"))
        val sink = stream.sink.buffer()
        sink.writeUtf8("abcdefghi")
        sink.close()
    
        // Verify the peer received what was expected.
        val headers1 = peer.takeFrame()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 75.5K bytes
    - Click Count (0)
  4. docs_src/query_params_str_validations/tutorial009_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = Query(default=None, alias="item-query")):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 281 bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/header-params.md

    {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *}
    
    Si te comunicas con esa *path operation* enviando dos headers HTTP como:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    El response sería como:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## Recapitulación { #recap }
    
    Declara headers con `Header`, usando el mismo patrón común que `Query`, `Path` y `Cookie`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  6. cmd/sts-handlers_test.go

    		// enabled.
    		allUsersFile: `{
      "foo": {
        "secretKey": "foobar123",
        "status": "enabled"
      }
    }
    `,
    		// Built-in groups should be imported without errors even if LDAP is
    		// enabled.
    		allGroupsFile: `{
      "mygroup": {
        "version": 1,
        "status": "enabled",
        "members": [
          "foo"
        ],
        "updatedAt": "2024-04-23T21:34:43.587429659Z"
      }
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
  7. docs/zh-hant/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial011_an_py310.py hl[9] *}
    
    若使用這樣的 URL:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    你會在路徑操作函式的參數 `q` 中,收到多個 `q` 查詢參數的值(`foo` 與 `bar`),以 Python 的 `list` 形式。
    
    因此,對該 URL 的回應會是:
    
    ```JSON
    {
      "q": [
        "foo",
        "bar"
      ]
    }
    ```
    
    /// tip | 提示
    
    要宣告型別為 `list` 的查詢參數(如上例),需要明確使用 `Query`,否則它會被解讀為請求本文。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  8. docs/ko/docs/_llm-test.md

    테스트:
    
    ## 코드 스니펫 { #code-snippets }
    
    //// tab | 테스트
    
    다음은 코드 스니펫입니다: `foo`. 그리고 이것은 또 다른 코드 스니펫입니다: `bar`. 그리고 또 하나: `baz quux`.
    
    ////
    
    //// tab | 정보
    
    코드 스니펫의 내용은 그대로 두어야 합니다.
    
    `scripts/translate.py`의 일반 프롬프트에서 `### Content of code snippets` 섹션을 참고하세요.
    
    ////
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  9. tests/test_skip_defaults.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class SubModel(BaseModel):
        a: str | None = "foo"
    
    
    class Model(BaseModel):
        x: int | None = None
        sub: SubModel
    
    
    class ModelSubclass(Model):
        y: int
        z: int = 0
        w: int | None = None
    
    
    class ModelDefaults(BaseModel):
        w: str | None = None
        x: str | None = None
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/security/oauth2-jwt.md

    Використовуючи ці ідеї, JWT можна застосовувати у значно складніших сценаріях.
    
    У таких випадках кілька сутностей можуть мати однакові ідентифікатори, скажімо `foo` (користувач `foo`, автомобіль `foo` і допис `foo`).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
Back to Top