Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 342 for Starlette (1.05 sec)

  1. docs/en/docs/tutorial/cors.md

    /// note | Technical Details
    
    You could also use `from starlette.middleware.cors import CORSMiddleware`.
    
    **FastAPI** provides several middlewares in `fastapi.middleware` just as a convenience for you, the developer. But most of the available middlewares come directly from Starlette.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    from pydantic.fields import FieldInfo
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    from starlette.concurrency import run_in_threadpool
    from starlette.datastructures import (
        FormData,
        Headers,
        ImmutableMultiDict,
        QueryParams,
        UploadFile,
    )
    from starlette.requests import HTTPConnection, Request
    from starlette.responses import Response
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  3. docs/es/docs/tutorial/cors.md

    /// note | Detalles Técnicos
    
    También podrías usar `from starlette.middleware.cors import CORSMiddleware`.
    
    **FastAPI** proporciona varios middlewares en `fastapi.middleware` como una conveniencia para ti, el desarrollador. Pero la mayoría de los middlewares disponibles provienen directamente de Starlette.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. fastapi/background.py

    from typing import Annotated, Any, Callable
    
    from annotated_doc import Doc
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    from typing_extensions import ParamSpec
    
    P = ParamSpec("P")
    
    
    class BackgroundTasks(StarletteBackgroundTasks):
        """
        A collection of background tasks that will be called after a response has been
        sent to the client.
    
        Read more about it in the
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. 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"})
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 03 22:37:12 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. docs/zh-hant/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py h1[1] *}
    
    `FastAPI` 是一個 Python 類別,提供所有 API 的全部功能。
    
    /// note | Technical Details
    
    `FastAPI` 是一個直接繼承自 `Starlette` 的類別。
    
    你同樣可以透過 `FastAPI` 來使用 <a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a> 所有的功能。
    
    ///
    
    ### 第二步:建立一個 `FastAPI` 「實例」
    
    {* ../../docs_src/first_steps/tutorial001.py h1[3] *}
    
    這裡的 `app` 變數將會是 `FastAPI` 類別的「實例」。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py hl[1] *}
    
    `FastAPI`는 당신의 API를 위한 모든 기능을 제공하는 파이썬 클래스입니다.
    
    /// note | 기술 세부사항
    
    `FastAPI`는 `Starlette`를 직접 상속하는 클래스입니다.
    
    `FastAPI`로 <a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a>의 모든 기능을 사용할 수 있습니다.
    
    ///
    
    ### 2 단계: `FastAPI` "인스턴스" 생성
    
    {* ../../docs_src/first_steps/tutorial001.py hl[3] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/cors.md

    /// note | Technische Details
    
    Sie könnten auch `from starlette.middleware.cors import CORSMiddleware` verwenden.
    
    **FastAPI** bietet mehrere Middlewares in `fastapi.middleware` nur als Komfort für Sie, den Entwickler. Aber die meisten der verfügbaren Middlewares stammen direkt von Starlette.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. 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}}
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/cors.md

    /// note | 技术细节
    
    你也可以使用 `from starlette.middleware.cors import CORSMiddleware`。
    
    出于方便,**FastAPI** 在 `fastapi.middleware` 中为开发者提供了几个中间件。但是大多数可用的中间件都是直接来自 Starlette
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top