- Sort Score
- Num 10 results
- Language All
Results 591 - 600 of 865 for DEF (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/zh/docs/tutorial/server-sent-events.md
/// tip | 提示 由于 Pydantic 会在**Rust** 端序列化它,相比未声明返回类型,你将获得更高的**性能**。 /// ### 非 async 的*路径操作函数* { #non-async-path-operation-functions } 你也可以使用常规的 `def` 函数(没有 `async`),并以同样的方式使用 `yield`。 FastAPI 会确保其正确运行,从而不阻塞事件循环。 由于此时函数不是 async,正确的返回类型应为 `Iterable[Item]`: {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
clientListener.assertOpen() val server = serverListener.assertOpen() webSocket.send("abc") serverListener.assertTextMessage("abc") server.send("def") clientListener.assertTextMessage("def") closeWebSockets(webSocket, server) } @Test @Throws(IOException::class) fun missingConnectionHeader() { webServer.enqueue( MockResponse
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 35.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse(body = "ABC")) server.enqueue(MockResponse(body = "DEF")) server.enqueue(MockResponse(body = "GHI")) assertContent("ABC", getResponse(newRequest("/"))) assertContent("DEF", getResponse(newRequest("/"))) assertContent("GHI", getResponse(newRequest("/"))) assertThat(hostnameVerifier.calls)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
docs/lambda/README.md
pip install flask requests ``` Following is an example lambda handler. ```py from flask import Flask, request, abort, make_response import requests app = Flask(__name__) @app.route('/', methods=['POST']) def get_webhook(): if request.method == 'POST': # obtain the request event from the 'POST' call event = request.json object_context = event["getObjectContext"] # Get the presigned URL to fetch the requested
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 7.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/stream-json-lines.md
/// tip | 豆知識 Pydantic は **Rust** 側でシリアライズを行うため、戻り値の型を宣言しない場合に比べて大幅に高い**パフォーマンス**が得られます。 /// ### 非 async の *path operation 関数* { #non-async-path-operation-functions } `async` を使わない通常の `def` 関数でも同様に `yield` を使えます。 FastAPI が適切に実行されるように処理するため、イベントループをブロックしません。 この場合は関数が async ではないので、適切な戻り値の型は `Iterable[Item]` です: {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 5.1K bytes - Click Count (0) -
cmd/xl-storage_test.go
{ srcVol: "success-vol", srcPath: "abc", expectedListDir: []string{"def/", "xyz/"}, expectedErr: nil, }, // TestXLStorage case - 1. // valid case with existing volume and file to delete. { srcVol: "success-vol", srcPath: "abc/def", expectedListDir: []string{"ghi/"}, expectedErr: nil, }, // TestXLStorage case - 1.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 66K bytes - Click Count (0) -
docs/ko/docs/features.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/python-types.md
```python from typing import Any def some_function(data: Any): print(data) ``` ### Generic types { #generic-types }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/deployment/docker.md
* Create an empty file `__init__.py`. * Create a `main.py` file with: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 28.3K bytes - Click Count (1) -
docs/en/docs/features.md
You write standard Python with types: ```Python from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` That can then be used like: ```Python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0)