- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 871 for code (0.15 sec)
-
docs/em/docs/tutorial/response-status-code.md
๐ ๐ ๐ ๐ช โ ๐จ ๐ท, ๐ ๐ช ๐ฃ ๐บ๐ธ๐ ๐ ๐ โ๏ธ ๐จ โฎ๏ธ ๐ข `status_code` ๐ *โก ๐ ๏ธ*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * โ๏ธ. ```Python hl_lines="6" {!../../../docs_src/response_status_code/tutorial001.py!} ``` !!! note ๐ ๐ `status_code` ๐ข "๐จโ๐จ" ๐ฉโ๐ฌ (`get`, `post`, โ๏ธ). ๐ซ ๐ *โก ๐ ๏ธ ๐ข*, ๐ ๐ ๐ข & ๐ช. `status_code` ๐ข ๐จ ๐ข โฎ๏ธ ๐บ๐ธ๐ ๐ ๐. !!! info
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 3.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-status-code.md
# ์๋ต ์ํ ์ฝ๋ ์๋ต ๋ชจ๋ธ๊ณผ ๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก, ์ด๋ค *๊ฒฝ๋ก ์๋*์ด๋ `status_code` ๋งค๊ฐ๋ณ์๋ฅผ ์ฌ์ฉํ์ฌ ์๋ต์ ๋ํ HTTP ์ํ ์ฝ๋๋ฅผ ์ ์ธํ ์ ์์ต๋๋ค. * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * ๊ธฐํ ```Python hl_lines="6" {!../../../docs_src/response_status_code/tutorial001.py!} ``` !!! note "์ฐธ๊ณ " `status_code` ๋ "๋ฐ์ฝ๋ ์ดํฐ" ๋ฉ์๋(`get`, `post` ๋ฑ)์ ๋งค๊ฐ๋ณ์์ ๋๋ค. ๋ชจ๋ ๋งค๊ฐ๋ณ์๋ค๊ณผ ๋ณธ๋ฌธ์ฒ๋ผ *๊ฒฝ๋ก ์๋ ํจ์*๊ฐ ์๋๋๋ค. `status_code` ๋งค๊ฐ๋ณ์๋ HTTP ์ํ ์ฝ๋๋ฅผ ์ซ์๋ก ์ ๋ ฅ๋ฐ์ต๋๋ค. !!! info "์ ๋ณด"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 4.8K bytes - Viewed (0) -
docs/em/docs/advanced/response-change-status-code.md
& โคด๏ธ ๐ ๐ช โ `status_code` ๐ *๐* ๐จ ๐. ```Python hl_lines="1 9 12" {!../../../docs_src/response_change_status_code/tutorial001.py!} ``` & โคด๏ธ ๐ ๐ช ๐จ ๐ ๐ ๐ ๐ช, ๐ ๐ ๐ ( `dict`, ๐ฝ ๐ท, โ๏ธ). & ๐ฅ ๐ ๐ฃ `response_model`, โซ๏ธ ๐ โ๏ธ โฝ & ๐ ๐ ๐ ๐จ. **FastAPI** ๐ โ๏ธ ๐ *๐* ๐จ โ ๐ ๐ (๐ช & ๐), & ๐ ๐ฎ ๐ซ ๐ ๐จ ๐ ๐ ๐ฒ ๐ ๐จ, โฝ ๐ `response_model`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 1.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-status-code.md
ะั ะผะพะถะตัะต ะทะฐะดะฐัั HTTP ะบะพะด ััะฐัััะฐ ะพัะฒะตัะฐ ั ะฟะพะผะพััั ะฟะฐัะฐะผะตััะฐ `status_code` ะฟะพะดะพะฑะฝะพ ัะพะผั, ะบะฐะบ ะฒั ะพะฟัะตะดะตะปัะตัะต ัั ะตะผั ะพัะฒะตัะฐ ะฒ ะปัะฑะพะน ะธะท *ะพะฟะตัะฐัะธะน ะฟััะธ*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * ะธ ะดััะณะธั . ```Python hl_lines="6" {!../../../docs_src/response_status_code/tutorial001.py!} ``` !!! note "ะัะธะผะตัะฐะฝะธะต"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 25 18:44:34 GMT 2023 - 7K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
You probably read before that you can set a default [Response Status Code](../tutorial/response-status-code.md){.internal-link target=_blank}. But in some cases you need to return a different status code than the default. ## Use case For example, imagine that you want to return an HTTP status code of "OK" `200` by default. But if the data didn't exist, you want to create it, and return an HTTP status code of "CREATED" `201`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 1.5K bytes - Viewed (0) -
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.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Feb 06 19:56:23 GMT 2024 - 1.6K bytes - Viewed (0) -
docs/de/docs/advanced/response-change-status-code.md
Anschlieรend kรถnnen Sie den `status_code` in diesem *vorรผbergehenden* Response-Objekt festlegen. ```Python hl_lines="1 9 12" {!../../../docs_src/response_change_status_code/tutorial001.py!} ``` Und dann kรถnnen Sie wie gewohnt jedes benรถtigte Objekt zurรผckgeben (ein `dict`, ein Datenbankmodell usw.).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 20:18:58 GMT 2024 - 1.8K bytes - Viewed (0) -
tests/test_response_code_no_body.py
client = TestClient(app) def test_get_response(): response = client.get("/a") assert response.status_code == 204, response.text assert "content-length" not in response.headers assert response.content == b"" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.2K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
# Response Status Code The same way you can specify a response model, you can also declare the HTTP status code used for the response with the parameter `status_code` in any of the *path operations*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * etc. ```Python hl_lines="6" {!../../../docs_src/response_status_code/tutorial001.py!} ``` !!! note
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 29 14:02:58 GMT 2020 - 4K bytes - Viewed (0) -
docs/de/docs/tutorial/response-status-code.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:32:57 GMT 2024 - 4.7K bytes - Viewed (0)