- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 612 for tipo (0.01 seconds)
-
docs/pt/docs/advanced/advanced-dependencies.md
``` ...e passar o que quer que isso retorne como valor da dependência em nossa *função de operação de rota* como o parâmetro `fixed_content_included`: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[22] *} /// tip | Dica Tudo isso parece não ser natural. E pode não estar muito claro ou aparentar ser útil ainda. Estes exemplos são intencionalmente simples, porém mostram como tudo funciona.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 20:32:40 GMT 2025 - 10K bytes - Click Count (0) -
docs/zh/docs/advanced/events.md
{!../../docs_src/events/tutorial003.py!} ``` 在这里,我们在 `yield` 之前将(虚拟的)模型函数放入机器学习模型的字典中,以此模拟加载模型的耗时**启动**操作。这段代码将在应用程序**开始处理请求之前**执行,即**启动**期间。 然后,在 `yield` 之后,我们卸载模型。这段代码将会在应用程序**完成处理请求后**执行,即在**关闭**之前。这可以释放诸如内存或 GPU 之类的资源。 /// tip | 提示 **关闭**事件只会在你停止应用时触发。 可能你需要启动一个新版本,或者你只是你厌倦了运行它。 🤷 /// ## 生命周期函数 首先要注意的是,我们定义了一个带有 `yield` 的异步函数。这与带有 `yield` 的依赖项非常相似。 ```Python hl_lines="14-19"Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 7K bytes - Click Count (0) -
docs/ru/docs/advanced/generate-clients.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 15.9K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/index.md
You **don't call it** directly (don't add the parenthesis at the end), you just pass it as a parameter to `Depends()`. And that function takes parameters in the same way that *path operation functions* do. /// tip You'll see what other "things", apart from functions, can be used as dependencies in the next chapter. /// Whenever a new request arrives, **FastAPI** will take care of:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 9.6K bytes - Click Count (0) -
docs/en/docs/tutorial/schema-extra-example.md
You can set `"json_schema_extra"` with a `dict` containing any additional data you would like to show up in the generated JSON Schema, including `examples`. /// tip You could use the same technique to extend the JSON Schema and add your own custom extra info. For example you could use it to add metadata for a frontend user interface, etc. /// /// info
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 8.9K bytes - Click Count (0) -
docs/pt/docs/tutorial/body-multiple-params.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 5.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/middleware.md
* 一个函数 `call_next` 它将接收 `request` 作为参数. * 这个函数将 `request` 传递给相应的 *路径操作*. * 然后它将返回由相应的*路径操作*生成的 `response`. * 然后你可以在返回 `response` 前进一步修改它. {* ../../docs_src/middleware/tutorial001.py hl[8:9,11,14] *} /// tip 请记住可以 <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers" class="external-link" target="_blank">用'X-' 前缀</a>添加专有自定义请求头.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.6K bytes - Click Count (0) -
docs/ko/docs/advanced/advanced-dependencies.md
```Python checker(q="somequery") ``` ...그리고 이때 반환되는 값을 *경로 연산 함수*의 `fixed_content_included` 매개변수로 전달합니다: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[22] *} /// tip | 참고 이 모든 과정이 복잡하게 느껴질 수 있습니다. 그리고 지금은 이 방법이 얼마나 유용한지 명확하지 않을 수도 있습니다. 이 예시는 의도적으로 간단하게 만들었지만, 전체 구조가 어떻게 작동하는지 보여줍니다. 보안 관련 장에서는 이와 같은 방식으로 구현된 편의 함수들이 있습니다.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.9K bytes - Click Count (0) -
docs/es/docs/tutorial/cookie-param-models.md
/// note | Nota Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓 /// /// tip | Consejo Esta misma técnica se aplica a `Query`, `Cookie`, y `Header`. 😎 /// ## Cookies con un Modelo de Pydantic { #cookies-with-a-pydantic-model }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/zh/docs/advanced/templates.md
{* ../../docs_src/templates/tutorial001.py hl[4,11,15:16] *} /// note | 笔记 在FastAPI 0.108.0,Starlette 0.29.0之前,`name`是第一个参数。 并且,在此之前,`request`对象是作为context的一部分以键值对的形式传递的。 /// /// tip | 提示 通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。 /// /// note | 技术细节 您还可以使用 `from starlette.templating import Jinja2Templates`。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.7K bytes - Click Count (0)