- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 272 for cookie1 (0.15 sec)
-
docs/pt/docs/advanced/using-request-directly.md
# Utilizando o Request diretamente Até agora você declarou as partes da requisição que você precisa utilizando os seus tipos. Obtendo dados de: * Os parâmetros das rotas. * Cabeçalhos (*Headers*). * Cookies. * etc. E ao fazer isso, o **FastAPI** está validando as informações, convertendo-as e gerando documentação para a sua API automaticamente. Porém há situações em que você possa precisar acessar o objeto `Request` diretamente.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/de/docs/advanced/response-directly.md
Sie können jedoch direkt eine `JSONResponse` von Ihren *Pfadoperationen* zurückgeben. Das kann beispielsweise nützlich sein, um benutzerdefinierte Header oder Cookies zurückzugeben. ## Eine `Response` zurückgeben Tatsächlich können Sie jede `Response` oder jede Unterklasse davon zurückgeben. /// tip | "Tipp" `JSONResponse` selbst ist eine Unterklasse von `Response`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
docs/es/docs/advanced/response-directly.md
Pero puedes devolver una `JSONResponse` directamente de tu *operación de path*. Esto puede ser útil, por ejemplo, para devolver cookies o headers personalizados. ## Devolver una `Response` De hecho, puedes devolver cualquier `Response` o cualquier subclase de la misma. /// tip | Consejo `JSONResponse` en sí misma es una subclase de `Response`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/en/docs/alternatives.md
Find ways to get great performance. Along with Hug (as Hug is based on Falcon) inspired **FastAPI** to declare a `response` parameter in functions. Although in FastAPI it's optional, and is used mainly to set headers, cookies, and alternative status codes. /// ### <a href="https://moltenframework.com/" class="external-link" target="_blank">Molten</a>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 23.2K bytes - Viewed (0) -
fastapi/security/http.py
It is also useful when you want to have authentication that can be provided in one of multiple optional ways (for example, in an HTTP Bearer token or in a cookie). """ ), ] = True, ): self.model = HTTPBearerModel(bearerFormat=bearerFormat, description=description)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 19 09:47:28 UTC 2024 - 13.2K bytes - Viewed (0) -
docs/en/docs/release-notes.md
@app.get("/items/") async def read_items(cookies: Annotated[Cookies, Cookie()]): return cookies ``` Read the new docs: [Cookie Parameter Models](https://fastapi.tiangolo.com/tutorial/cookie-param-models/). #### Forbid Extra Query (Cookie, Header) Parameters Use Pydantic models to restrict extra values for `Query` parameters (also applies to `Header` and `Cookie` parameters).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Nov 01 11:25:57 UTC 2024 - 460.3K bytes - Viewed (0) -
docs/zh/docs/advanced/using-request-directly.md
# 直接使用请求 至此,我们已经使用多种类型声明了请求的各种组件。 并从以下对象中提取数据: * 路径参数 * 请求头 * Cookies * 等 **FastAPI** 使用这种方式验证数据、转换数据,并自动生成 API 文档。 但有时,我们也需要直接访问 `Request` 对象。 ## `Request` 对象的细节 实际上,**FastAPI** 的底层是 **Starlette**,**FastAPI** 只不过是在 **Starlette** 顶层提供了一些工具,所以能直接使用 Starlette 的 <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`</a> 对象。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2K bytes - Viewed (0) -
docs/ko/docs/tutorial/schema-extra-example.md
```Python hl_lines="4 10-13" {!> ../../docs_src/schema_extra_example/tutorial002.py!} ``` //// ## JSON Schema에서의 `examples` - OpenAPI 이들 중에서 사용합니다: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()` **OpenAPI**의 **JSON 스키마**에 추가될 부가적인 정보를 포함한 `examples` 모음을 선언할 수 있습니다. ### `examples`를 포함한 `Body` 여기, `Body()`에 예상되는 예제 데이터 하나를 포함한 `examples`를 넘겼습니다:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-forms.md
``` 例如,OAuth2 规范的 "密码流" 模式规定要通过表单字段发送 `username` 和 `password`。 <abbr title="specification">该规范</abbr>要求字段必须命名为 `username` 和 `password`,并通过表单字段发送,不能用 JSON。 使用 `Form` 可以声明与 `Body` (及 `Query`、`Path`、`Cookie`)相同的元数据和验证。 /// info | "说明" `Form` 是直接继承自 `Body` 的类。 /// /// tip | "提示" 声明表单体要显式使用 `Form` ,否则,FastAPI 会把该参数当作查询参数或请求体(JSON)参数。 /// ## 关于 "表单字段"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/fr/docs/advanced/response-directly.md
Mais vous pouvez retourner une `JSONResponse` directement à partir de vos *opérations de chemin*. Cela peut être utile, par exemple, pour retourner des en-têtes personnalisés ou des cookies. ## Renvoyer une `Response` En fait, vous pouvez retourner n'importe quelle `Response` ou n'importe quelle sous-classe de celle-ci. /// note | "Remarque"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.6K bytes - Viewed (0)