- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 207 for outer (0.02 seconds)
-
docs_src/custom_request_and_route/tutorial001_an_py310.py
request = GzipRequest(request.scope, request.receive) return await original_route_handler(request) return custom_route_handler app = FastAPI() app.router.route_class = GzipRoute @app.post("/sum") async def sum_numbers(numbers: Annotated[list[int], Body()]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1015 bytes - Click Count (0) -
docs/pt/docs/tutorial/path-params.md
## A ordem importa { #order-matters } Ao criar *operações de rota*, você pode encontrar situações em que tem um path fixo. Como `/users/me`, digamos que seja para obter dados sobre o usuário atual. E então você também pode ter um path `/users/{user_id}` para obter dados sobre um usuário específico por algum ID de usuário.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/zh/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## 在路由器中自定义 `APIRoute` 类 { #custom-apiroute-class-in-a-router } 你也可以设置 `APIRouter` 的 `route_class` 参数: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *} 在此示例中,`router` 下的路径操作将使用自定义的 `TimedRoute` 类,响应中会多一个 `X-Response-Time` 头,包含生成响应所用的时间:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 4.1K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_an_py310.py
detail = {"errors": exc.errors(), "body": body.decode()} raise HTTPException(status_code=422, detail=detail) return custom_route_handler app = FastAPI() app.router.route_class = ValidationErrorLoggingRoute @app.post("/") async def sum_numbers(numbers: Annotated[list[int], Body()]):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 974 bytes - Click Count (0) -
docs/zh-hant/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## 在路由器中自訂 `APIRoute` 類別 { #custom-apiroute-class-in-a-router } 你也可以在 `APIRouter` 上設定 `route_class` 參數: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *} 在此範例中,`router` 底下的路徑操作會使用自訂的 `TimedRoute` 類別,並在回應中多加上一個 `X-Response-Time` 標頭,標示產生該回應所花費的時間:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 4.2K bytes - Click Count (0) -
internal/grid/manager.go
} return m, nil } // AddToMux will add the grid manager to the given mux. func (m *Manager) AddToMux(router *mux.Router, authReq func(r *http.Request) error) { router.Handle(m.routePath, m.Handler(authReq)) } // Handler returns a handler that can be used to serve grid requests. // This should be connected on RoutePath to the main server.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Nov 12 20:41:41 GMT 2024 - 10.8K bytes - Click Count (0) -
docs/pt/docs/help-fastapi.md
Você gosta do **FastAPI**? Você gostaria de ajudar o FastAPI, outras pessoas usuárias e o autor? Ou você gostaria de obter ajuda com o **FastAPI**? Há maneiras muito simples de ajudar (várias envolvem apenas um ou dois cliques). E também há várias formas de obter ajuda. ## Assine a newsletter { #subscribe-to-the-newsletter }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 13.7K bytes - Click Count (0) -
docs/ko/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## 라우터에서의 커스텀 `APIRoute` 클래스 { #custom-apiroute-class-in-a-router } `APIRouter`의 `route_class` 파라미터를 설정할 수도 있습니다: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *} 이 예시에서는 `router` 아래의 *경로 처리*들이 커스텀 `TimedRoute` 클래스를 사용하며, 응답을 생성하는 데 걸린 시간을 담은 추가 `X-Response-Time` 헤더가 응답에 포함됩니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 5.2K bytes - Click Count (0) -
docs/fr/docs/how-to/custom-request-and-route.md
## Utiliser une classe `APIRoute` personnalisée dans un routeur { #custom-apiroute-class-in-a-router } Vous pouvez également définir le paramètre `route_class` d'un `APIRouter` : {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *}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) -
docs/en/docs/editor-support.md
## Features { #features } - **Path Operation Explorer** - A sidebar tree view of all <dfn title="routes, endpoints">*path operations*</dfn> in your application. Click to jump to any route or router definition. - **Route Search** - Search by path, method, or name with <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>E</kbd> (on macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>E</kbd>).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.5K bytes - Click Count (0)