- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 495 for nello (0.08 seconds)
-
docs_src/json_base64_bytes/tutorial001_py310.py
@app.post("/data") def post_data(body: DataInput): content = body.data.decode("utf-8") return {"description": body.description, "content": content} @app.get("/data") def get_data() -> DataOutput: data = "hello".encode("utf-8") return DataOutput(description="A plumbus", data=data) @app.post("/data-in-out") def post_data_in_out(body: DataInputOutput) -> DataInputOutput:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 892 bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/SKILL.md
q: Annotated[str | None, Query(max_length=50)] = None, ): return {"message": "Hello World"} ``` instead of: ```python # DO NOT DO THIS @app.get("/items/{item_id}") async def read_item( item_id: int = Path(ge=1, description="The item ID"), q: str | None = Query(default=None, max_length=50), ): return {"message": "Hello World"} ``` ### For Dependencies
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
tests/test_sse.py
yield {"name": item.name, "description": item.description} @app.get("/items/stream-sse-event", response_class=EventSourceResponse) async def sse_items_event(): yield ServerSentEvent(data="hello", event="greeting", id="1") yield ServerSentEvent(data={"key": "value"}, event="json-data", id="2") yield ServerSentEvent(comment="just a comment") yield ServerSentEvent(data="retry-test", retry=5000)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 9.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java
client.dispatcher().executorService().shutdown(); } @Override public void onOpen(WebSocket webSocket, Response response) { webSocket.send("Hello..."); webSocket.send("...World!"); webSocket.send(ByteString.decodeHex("deadbeef")); webSocket.close(1000, "Goodbye, World!"); } @Override public void onMessage(WebSocket webSocket, String text) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Apr 04 11:40:21 GMT 2024 - 1.6K bytes - Click Count (0) -
tests/test_stringified_annotation_dependency_py314.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 13:49:44 GMT 2026 - 711 bytes - Click Count (0) -
docs_src/custom_docs_ui/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.1K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py
from docs_src.behind_a_proxy.tutorial002_py310 import app client = TestClient(app) def test_main(): response = client.get("/app") assert response.status_code == 200 assert response.json() == {"message": "Hello World", "root_path": "/api/v1"} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == snapshot( {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.1K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testGetContentAsStringWithCache() throws IOException { CurlResponse response = new CurlResponse(); response.setEncoding("UTF-8"); String testContent = "Hello, World!"; byte[] data = testContent.getBytes("UTF-8"); ContentCache cache = new ContentCache(data); response.setContentCache(cache); String content = response.getContentAsString();Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
docs_src/custom_docs_ui/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.1K bytes - Click Count (0) -
docs/fr/docs/advanced/behind-a-proxy.md
<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` </div> La réponse sera semblable à : ```JSON { "message": "Hello World", "root_path": "/api/v1" } ``` ### Définir le `root_path` dans l'application FastAPI { #setting-the-root-path-in-the-fastapi-app }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 17.4K bytes - Click Count (0)