Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 401 - 410 of 453 for starlette (0.06 seconds)

  1. docs/fr/docs/how-to/custom-request-and-route.md

    Et ces deux éléments, `scope` et `receive`, sont ce dont on a besoin pour créer une nouvelle instance de `Request`.
    
    Pour en savoir plus sur `Request`, consultez [la documentation de Starlette sur les requêtes](https://www.starlette.dev/requests/).
    
    ///
    
    La seule chose que fait différemment la fonction renvoyée par `GzipRequest.get_route_handler`, c'est de convertir la `Request` en `GzipRequest`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  2. docs/es/docs/how-to/custom-request-and-route.md

    Y esas dos cosas, `scope` y `receive`, son lo que se necesita para crear una nueva *Request instance*.
    
    Para aprender más sobre el `Request`, revisa [la documentación de Starlette sobre Requests](https://www.starlette.dev/requests/).
    
    ///
    
    La única cosa que la función devuelta por `GzipRequest.get_route_handler` hace diferente es convertir el `Request` en un `GzipRequest`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  3. docs/fr/docs/tutorial/cors.md

    /// note | Détails techniques
    
    Vous pouvez également utiliser `from starlette.middleware.cors import CORSMiddleware`.
    
    **FastAPI** fournit plusieurs middlewares dans `fastapi.middleware` uniquement pour votre confort, en tant que développeur. Mais la plupart des middlewares disponibles proviennent directement de Starlette.
    
    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)
  4. docs/ko/docs/tutorial/middleware.md

    하지만 브라우저에서 클라이언트가 볼 수 있게 하려는 사용자 정의 헤더가 있다면, [CORS (Cross-Origin Resource Sharing)](cors.md) 설정에 [Starlette의 CORS 문서](https://www.starlette.dev/middleware/#corsmiddleware)에 문서화된 `expose_headers` 매개변수를 사용해 추가해야 합니다.
    
    ///
    
    /// note | 기술 세부사항
    
    `from starlette.requests import Request`를 사용할 수도 있습니다.
    
    **FastAPI**는 개발자인 여러분의 편의를 위해 이를 제공합니다. 하지만 이는 Starlette에서 직접 가져온 것입니다.
    
    ///
    
    ### `response`의 전과 후 { #before-and-after-the-response }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  5. tests/test_list_bytes_file_order_preserved_issue_14811.py

    Fixed in PR: https://github.com/fastapi/fastapi/pull/14884
    """
    
    from typing import Annotated
    
    import anyio
    import pytest
    from fastapi import FastAPI, File
    from fastapi.testclient import TestClient
    from starlette.datastructures import UploadFile as StarletteUploadFile
    
    
    def test_list_bytes_file_preserves_order(
        monkeypatch: pytest.MonkeyPatch,
    ) -> None:
        app = FastAPI()
    
        @app.post("/upload")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 10 12:14:38 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/path-params.md

    Тем не менее это можно сделать в **FastAPI**, используя один из внутренних инструментов Starlette.
    
    Документация по-прежнему будет работать, хотя и не добавит никакой информации о том, что параметр должен содержать путь.
    
    ### Конвертер пути { #path-convertor }
    
    Благодаря одной из опций Starlette, можете объявить *параметр пути*, содержащий *путь*, используя URL вроде:
    
    ```
    /files/{file_path:path}
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/cors.md

    /// note | Detalhes Técnicos
    
    Você também pode usar `from starlette.middleware.cors import CORSMiddleware`.
    
    **FastAPI** fornece vários middlewares em `fastapi.middleware` apenas como uma conveniência para você, o desenvolvedor. Mas a maioria dos middlewares disponíveis vêm diretamente da Starlette.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  8. docs/ko/docs/history-design-future.md

    그 후, JSON Schema를 완전히 준수하도록 하고, 제약 조건 선언을 정의하는 다양한 방식을 지원하며, 여러 편집기에서의 테스트를 바탕으로 편집기 지원(타입 검사, 자동 완성)을 개선하기 위해 기여했습니다.
    
    개발 과정에서, 또 다른 핵심 필요조건인 [**Starlette**](https://www.starlette.dev/)에도 기여했습니다.
    
    ## 개발 { #development }
    
    **FastAPI** 자체를 만들기 시작했을 때쯤에는, 대부분의 조각들이 이미 갖춰져 있었고, 디자인은 정의되어 있었며, 필요조건과 도구는 준비되어 있었고, 표준과 명세에 대한 지식도 명확하고 최신 상태였습니다.
    
    ## 미래 { #future }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  9. tests/test_exception_handlers.py

    import pytest
    from fastapi import Depends, FastAPI, HTTPException
    from fastapi.exceptions import RequestValidationError
    from fastapi.testclient import TestClient
    from starlette.responses import JSONResponse
    
    
    def http_exception_handler(request, exception):
        return JSONResponse({"exception": "http-exception"})
    
    
    def request_validation_exception_handler(request, exception):
        return JSONResponse({"exception": "request-validation"})
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 03 22:37:12 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  10. tests/test_additional_responses_custom_model_in_callback.py

    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, HttpUrl
    from starlette.responses import JSONResponse
    
    
    class CustomModel(BaseModel):
        a: int
    
    
    app = FastAPI()
    
    callback_router = APIRouter(default_response_class=JSONResponse)
    
    
    @callback_router.get(
        "{$callback_url}/callback/", responses={400: {"model": CustomModel}}
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 5.9K bytes
    - Click Count (0)
Back to Top