Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 861 - 870 of 1,096 for sltr (0.04 seconds)

  1. docs/fr/docs/tutorial/body.md

    * Si le paramètre est déclaré comme ayant pour type un **modèle Pydantic**, il sera interprété comme faisant partie du **corps** de la requête.
    
    /// note | Remarque
    
    **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  2. tests/test_sse.py

    from fastapi.responses import EventSourceResponse
    from fastapi.sse import ServerSentEvent
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    items = [
        Item(name="Plumbus", description="A multi-purpose household device."),
        Item(name="Portal Gun", description="A portal opening device."),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  3. docs/ja/docs/tutorial/path-operation-configuration.md

    /// note | 技術詳細
    
    `from starlette import status`を使用することもできます。
    
    **FastAPI** は開発者の利便性を考慮して、`fastapi.status`と同じ`starlette.status`を提供しています。しかし、これはStarletteから直接提供されています。
    
    ///
    
    ## タグ { #tags }
    
    `tags`パラメータを`str`の`list`(通常は1つの`str`)と一緒に渡すと、*path operation*にタグを追加できます:
    
    {* ../../docs_src/path_operation_configuration/tutorial002_py310.py hl[15,20,25] *}
    
    これらはOpenAPIスキーマに追加され、自動ドキュメントのインターフェースで使用されます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  4. tests/test_regex_deprecated_body.py

    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
                if q:
                    return f"Hello {q}"
                else:
                    return "Hello World"
    
        client = TestClient(app)
        return client
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. tests/test_response_model_sub_types.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    
    class Model(BaseModel):
        name: str
    
    
    app = FastAPI()
    
    
    @app.get("/valid1", responses={"500": {"model": int}})
    def valid1():
        pass
    
    
    @app.get("/valid2", responses={"500": {"model": list[int]}})
    def valid2():
        pass
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

                    sb.append('/');
                }
    
                str = sb.toString();
    
                int i = str.length() - 2;
                while (str.charAt(i) != '/') {
                    i--;
                }
    
                return str.substring(0, i + 1);
            }
    
            return "smb1://";
        }
    
        /**
         * Returns the full uncanonicalized URL of this SMB resource. An
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/path-operation-configuration.md

    ///
    
    ## Теги { #tags }
    
    Вы можете добавлять теги к вашим *операциям пути*, добавив параметр `tags` с `list` заполненным `str`-значениями (обычно в нём только одна строка):
    
    {* ../../docs_src/path_operation_configuration/tutorial002_py310.py hl[15,20,25] *}
    
    Они будут добавлены в схему OpenAPI и будут использованы в автоматической документации интерфейса:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  8. docs/ja/docs/advanced/settings.md

    したがって、その下の関数は引数の組み合わせごとに一度だけ実行されます。そして、その各引数の組み合わせで返された値は、まったく同じ引数の組み合わせで呼び出されたときに何度でも再利用されます。
    
    たとえば、次のような関数があるとします:
    
    ```Python
    @lru_cache
    def say_hi(name: str, salutation: str = "Ms."):
        return f"Hello {salutation} {name}"
    ```
    
    プログラムは次のように実行されます:
    
    ```mermaid
    sequenceDiagram
    
    participant code as Code
    participant function as say_hi()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/request-files.md

    ### `UploadFile` { #uploadfile }
    
    `UploadFile` 은 다음과 같은 어트리뷰트가 있습니다:
    
    * `filename` : 문자열(`str`)로 된 업로드된 파일의 파일명입니다 (예: `myimage.jpg`).
    * `content_type` : 문자열(`str`)로 된 파일 형식(MIME type / media type)입니다 (예: `image/jpeg`).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/curl/CurlResponseTest.java

            // ## Act ##
            String str = response.getContentAsString();
            try (InputStream stream = response.getContentAsStream()) {
                byte[] buffer = new byte[1024];
                int bytesRead = stream.read(buffer);
                String fromStream = new String(buffer, 0, bytesRead, "UTF-8");
    
                // ## Assert ##
                assertEquals(content, str);
                assertEquals(content, fromStream);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
Back to Top