- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 345 for starlette (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
docs/en/docs/reference/responses.md
- body - background - raw_headers - render - init_headers - headers - set_cookie - delete_cookie ## Starlette Responses ::: fastapi.responses.FileResponse options: members: - chunk_size - charset - status_code - media_type - bodyRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 3.7K bytes - Viewed (0) -
docs/en/docs/index.md
**Typer** is FastAPI's little sibling. And it's intended to be the **FastAPI of CLIs**. ⌨️ 🚀 ## Requirements { #requirements } FastAPI stands on the shoulders of giants: * <a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a> for the web parts. * <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> for the data parts. ## Installation { #installation }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 25 11:01:37 UTC 2025 - 23.5K bytes - Viewed (0) -
docs/es/docs/history-design-future.md
Durante el desarrollo, también contribuí a <a href="https://www.starlette.dev/" class="external-link" target="_blank">**Starlette**</a>, el otro requisito clave. ## Desarrollo { #development }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 10:15:01 UTC 2025 - 4.7K bytes - Viewed (0) -
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 <a href="https://www.starlette.dev/requests/" class="external-link" target="_blank">la documentación de Starlette sobre Requests</a>. /// La única cosa que la función devuelta por `GzipRequest.get_route_handler` hace diferente es convertir el `Request` en un `GzipRequest`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5K bytes - Viewed (0) -
docs/en/docs/history-design-future.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 4.2K bytes - Viewed (0)