- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for head (0.17 sec)
-
docs_src/custom_response/tutorial004.py
def generate_html_response(): html_content = """ <html> <head> <title>Some HTML in here</title> </head> <body> <h1>Look ma! HTML!</h1> </body> </html> """ return HTMLResponse(content=html_content, status_code=200) @app.get("/items/", response_class=HTMLResponse) async def read_items():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 491 bytes - Viewed (0) -
tests/test_operations_signatures.py
import inspect from fastapi import APIRouter, FastAPI method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] def test_signatures_consistency(): base_sig = inspect.signature(APIRouter.get) for method_name in method_names: router_method = getattr(APIRouter, method_name) app_method = getattr(FastAPI, method_name) router_sig = inspect.signature(router_method)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon May 27 12:08:13 GMT 2019 - 934 bytes - Viewed (0) -
docs_src/websockets/tutorial002_py310.py
FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)"> <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label>
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.7K bytes - Viewed (0) -
docs_src/websockets/tutorial003.py
from typing import List from fastapi import FastAPI, WebSocket, WebSocketDisconnect from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <h2>Your ID: <span id="ws-id"></span></h2> <form action="" onsubmit="sendMessage(event)">
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Aug 09 13:52:19 GMT 2020 - 2.5K bytes - Viewed (0) -
docs_src/websockets/tutorial002_an_py310.py
Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)"> <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label>
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/first-steps.md
开发 API 时,「路径」是用来分离「关注点」和「资源」的主要手段。 #### 操作 这里的「操作」指的是一种 HTTP「方法」。 下列之一: * `POST` * `GET` * `PUT` * `DELETE` ...以及更少见的几种: * `OPTIONS` * `HEAD` * `PATCH` * `TRACE` 在 HTTP 协议中,你可以使用以上的其中一种(或多种)「方法」与每个路径进行通信。 --- 在开发 API 时,你通常使用特定的 HTTP 方法去执行特定的行为。 通常使用: * `POST`:创建数据。 * `GET`:读取数据。 * `PUT`:更新数据。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 9.2K bytes - Viewed (0) -
docs_src/templates/templates/item.html
HTML - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 22:25:37 GMT 2024 - 235 bytes - Viewed (0) -
tests/test_extra_routes.py
} }, }, }, "summary": "Head Item", "operationId": "head_item_items__item_id__head", "parameters": [ { "required": True, "schema": {"title": "Item Id", "type": "string"},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.7K bytes - Viewed (0) -
docs_src/custom_response/tutorial003.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 394 bytes - Viewed (0) -
docs/pl/docs/tutorial/first-steps.md
#### Operacje "Operacje" tutaj odnoszą się do jednej z "metod" HTTP. Jedna z: * `POST` * `GET` * `PUT` * `DELETE` ...i te bardziej egzotyczne: * `OPTIONS` * `HEAD` * `PATCH` * `TRACE` W protokole HTTP można komunikować się z każdą ścieżką za pomocą jednej (lub więcej) "metod". --- Podczas tworzenia API zwykle używasz tych metod HTTP do wykonania określonej akcji.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.8K bytes - Viewed (0)