- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 894 for responder (0.19 sec)
-
docs/es/docs/advanced/response-change-status-code.md
# Response - Cambiar el Status Code Probablemente ya has leído con anterioridad que puedes establecer un [Response Status Code](../tutorial/response-status-code.md){.internal-link target=_blank} por defecto. Pero en algunos casos necesitas retornar un status code diferente al predeterminado. ## Casos de uso Por ejemplo, imagina que quieres retornar un HTTP status code de "OK" `200` por defecto.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/zh/docs/advanced/response-change-status-code.md
# 响应 - 更改状态码 你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md){.internal-link target=_blank}。 但在某些情况下,你需要返回一个不同于默认值的状态码。 ## 使用场景 例如,假设你想默认返回一个HTTP状态码为“OK”`200`。 但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。 但你仍然希望能够使用`response_model`过滤和转换你返回的数据。 对于这些情况,你可以使用一个`Response`参数。 ## 使用 `Response` 参数 你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。 然后你可以在这个*临时*响应对象中设置`status_code`。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.4K bytes - Viewed (0) -
tests/test_generate_unique_id_function.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 13 15:10:26 UTC 2024 - 66.7K bytes - Viewed (0) -
tests/test_include_router_defaults_overrides.py
async def dep0(response: Response): response.headers["x-level0"] = "True" async def dep1(response: Response): response.headers["x-level1"] = "True" async def dep2(response: Response): response.headers["x-level2"] = "True" async def dep3(response: Response): response.headers["x-level3"] = "True" async def dep4(response: Response):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 358.6K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
* In requests and responses will be represented as a `str` in ISO 8601 format, like: `2008-09-15T15:53:00+05:00`. * `datetime.date`: * Python `datetime.date`. * In requests and responses will be represented as a `str` in ISO 8601 format, like: `2008-09-15`. * `datetime.time`: * A Python `datetime.time`. * In requests and responses will be represented as a `str` in ISO 8601 format, like: `14:23:55.003`. * `datetime.timedelta`:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0) -
tests/test_application.py
assert "redoc@next" in response.text def test_enum_status_code_response(): response = client.get("/enum-status-code") assert response.status_code == 201, response.text assert response.json() == "foo bar" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 52.2K bytes - Viewed (0) -
docs/de/docs/advanced/middleware.md
Wenn ein eingehender Request nicht korrekt validiert wird, wird eine „400“-Response gesendet. ## `GZipMiddleware` Verarbeitet GZip-Responses für alle Requests, die `"gzip"` im `Accept-Encoding`-Header enthalten. Diese Middleware verarbeitet sowohl Standard- als auch Streaming-Responses. ```Python hl_lines="2 6" {!../../docs_src/advanced_middleware/tutorial003.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
else if ( compound && this.nextCommand == 0 && this.readSize > 0 ) { // TODO: only apply this for actual compound chains, or is this correct for single responses, too? // 3.2.5.1.9 Handling Compounded Responses // The final response in the compounded response chain will have NextCommand equal to 0, // and it MUST be processed as an individual message of a size equal to the number of bytes
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Sep 30 10:47:31 UTC 2018 - 19.9K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
return nil, err } responses = append(responses, resp) return responses, nil } return responses, nil } func mergeShards(responses map[string]*discovery.DiscoveryResponse) (*discovery.DiscoveryResponse, error) { retval := discovery.DiscoveryResponse{} if len(responses) == 0 { return &retval, nil } for _, response := range responses {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.6K bytes - Viewed (0) -
tests/test_response_by_alias.py
def test_read_dict(): response = client.get("/dict") assert response.status_code == 200, response.text assert response.json() == {"name": "Foo"} def test_read_model(): response = client.get("/model") assert response.status_code == 200, response.text assert response.json() == {"name": "Foo"} def test_read_list(): response = client.get("/list")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.1K bytes - Viewed (0)