- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DELETE (0.16 sec)
-
docs/de/docs/tutorial/response-status-code.md
So wie ein Responsemodell, können Sie auch einen HTTP-Statuscode für die Response deklarieren, mithilfe des Parameters `status_code`, und zwar in jeder der *Pfadoperationen*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * usw. ```Python hl_lines="6" {!../../../docs_src/response_status_code/tutorial001.py!} ``` !!! note "Hinweis"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:32:57 GMT 2024 - 4.7K bytes - Viewed (0) -
docs/zh/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 May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:40:18 GMT 2024 - 3.7K bytes - Viewed (0)