Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 924 for docs_src (0.28 sec)

  1. docs/en/docs/advanced/sub-applications.md

    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[3, 6:8] *}
    
    ### Sub-application { #sub-application }
    
    Then, create your sub-application, and its *path operations*.
    
    This sub-application is just another standard FastAPI application, but this is the one that will be "mounted":
    
    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/security/http-basic-auth.md

    * Verwenden Sie dieses `security` mit einer Abhängigkeit in Ihrer *Pfadoperation*.
    * Diese gibt ein Objekt vom Typ `HTTPBasicCredentials` zurück:
        * Es enthält den gesendeten `username` und das gesendete `password`.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Wenn Sie versuchen, die URL zum ersten Mal zu öffnen (oder in der Dokumentation auf den Button „Execute“ zu klicken), wird der Browser Sie nach Ihrem Benutzernamen und Passwort fragen:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. docs/ru/docs/advanced/behind-a-proxy.md

    ```
    
    </div>
    
    ### Редиректы с HTTPS { #redirects-with-https }
    
    Например, вы объявили операцию пути `/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py39.py hl[6] *}
    
    Если клиент обратится к `/items`, по умолчанию произойдёт редирект на `/items/`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/response-directly.md

    Para esses casos, você pode usar o `jsonable_encoder` para converter seus dados antes de repassá-los para a resposta:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    /// note | Detalhes Técnicos
    
    Você também pode utilizar `from starlette.responses import JSONResponse`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/cookie-param-models.md

    ///
    
    ## Cookies com Modelos Pydantic { #cookies-with-a-pydantic-model }
    
    Declare o parâmetro de **cookie** que você precisa em um **modelo Pydantic**, e depois declare o parâmetro como um `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    O **FastAPI** irá **extrair** os dados para **cada campo** dos **cookies** recebidos na requisição e lhe fornecer o modelo Pydantic que você definiu.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/request-forms.md

    ```
    
    ///
    
    ## Importar `Form` { #import-form }
    
    Importar `Form` desde `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## Definir parámetros de `Form` { #define-form-parameters }
    
    Crea parámetros de formulario de la misma manera que lo harías para `Body` o `Query`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/request-forms.md

    ```
    
    ///
    
    ## Import `Form` { #import-form }
    
    Import `Form` from `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## Define `Form` parameters { #define-form-parameters }
    
    Create form parameters the same way you would for `Body` or `Query`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/cookie-param-models.md

    ///
    
    ## Pydantic-модель для cookies { #cookies-with-a-pydantic-model }
    
    Объявите параметры **cookie**, которые вам нужны, в **Pydantic-модели**, а затем объявите параметр как `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** **извлечёт** данные для **каждого поля** из **cookies**, полученных в запросе, и выдаст вам объявленную Pydantic-модель.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial001_py39.py hl[6:9] *}
    
    ## Agregar la tarea en segundo plano { #add-the-background-task }
    
    Dentro de tu *path operation function*, pasa tu función de tarea al objeto de *background tasks* con el método `.add_task()`:
    
    {* ../../docs_src/background_tasks/tutorial001_py39.py hl[14] *}
    
    `.add_task()` recibe como argumentos:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_advanced_middleware/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.advanced_middleware.tutorial001_py39 import app
    
    
    def test_middleware():
        client = TestClient(app, base_url="https://testserver")
        response = client.get("/")
        assert response.status_code == 200, response.text
    
        client = TestClient(app)
        response = client.get("/", follow_redirects=False)
        assert response.status_code == 307, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 479 bytes
    - Viewed (0)
Back to top