- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 936 for rjsonp (0.05 seconds)
-
docs/zh-hant/docs/advanced/custom-response.md
```json { "message": "Hello World" } ``` 當然,你大概能找到比格式化 JSON 更好的方式來利用這個能力。😉 ### `orjson` 或回應模型 { #orjson-or-response-model } 如果你追求效能,使用[回應模型](../tutorial/response-model.md) 大概會比使用 `orjson` 回應更好。 有了回應模型,FastAPI 會使用 Pydantic 直接將資料序列化為 JSON,而不需要像其他情況那樣先經過 `jsonable_encoder` 之類的中介步驟。 而且在底層,Pydantic 用來序列化為 JSON 的 Rust 機制和 `orjson` 相同,因此用回應模型已經能獲得最佳效能。 ## 預設回應類別 { #default-response-class }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/ja/docs/advanced/custom-response.md
```json { "message": "Hello World" } ``` もちろん、JSONの整形以外にも、これを活用するもっと良い方法が見つかるはずです。 😉 ### `orjson` か レスポンスモデルか { #orjson-or-response-model } もし求めているのがパフォーマンスであれば、`orjson` レスポンスを使うより、[レスポンスモデル](../tutorial/response-model.md) を使うほうが良い場合が多いです。 レスポンスモデルがあると、FastAPI は中間ステップ(他の場合に行われる `jsonable_encoder` による変換など)を介さずに、Pydantic を使ってデータをJSONにシリアライズします。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 13.5K bytes - Click Count (0) -
docs/es/docs/tutorial/stream-json-lines.md
``` Incluso podría ser un stream infinito, donde sigues enviando datos. ## JSON Lines { #json-lines } En estos casos, es común enviar "**JSON Lines**", que es un formato donde envías un objeto JSON por línea. Una response tendría un tipo de contenido `application/jsonl` (en lugar de `application/json`) y el response body sería algo como: ```json {"name": "Plumbus", "description": "A multi-purpose household device."}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:12:26 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/en/docs/tutorial/stream-json-lines.md
``` It could even be an infinite stream, where you keep sending data. ## JSON Lines { #json-lines } In these cases, it's common to send "**JSON Lines**", which is a format where you send one JSON object per line. A response would have a content type of `application/jsonl` (instead of `application/json`) and the body would be something like: ```json {"name": "Plumbus", "description": "A multi-purpose household device."}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.3K bytes - Click Count (0) -
docs/en/docs/reference/responses.md
However, they are now deprecated as you will now get better performance by using a [Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/). That way, Pydantic will serialize the data into JSON bytes on the Rust side, which will achieve better performance than these custom JSON responses.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 4.4K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/RichReportScrapper.kt
* limitations under the License. */ package gradlebuild.binarycompatibility import org.jsoup.Jsoup import org.jsoup.nodes.Document import java.io.File internal fun scrapeRichReport(richReportFile: File): RichReport = Jsoup.parse(richReportFile, "UTF-8").run { RichReport( scrapeMessagesForSeverity("error"),
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 2.3K bytes - Click Count (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
import okhttp3.Cache; import okhttp3.HttpUrl; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; /** * Fetches HTML from a requested URL, follows the links, and repeats. */ public final class Crawler { private final OkHttpClient client;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0) -
docs/ja/docs/tutorial/stream-json-lines.md
Note over App: Keeps producing... Note over Client: Keeps consuming... ``` データを送り続ける無限ストリームにすることもできます。 ## JSON Lines { #json-lines } このような場合、1 行に 1 つの JSON オブジェクトを送る「**JSON Lines**」形式を使うのが一般的です。 レスポンスの content type は `application/jsonl`(`application/json` の代わり)となり、ボディは次のようになります: ```json {"name": "Plumbus", "description": "A multi-purpose household device."}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) -
docs/debugging/inspect/main.go
} var inputs []string // Parse parameters switch { case *stdin: // Parse 'mc support inspect --json' output input := struct { File string `json:"file"` Key string `json:"key"` }{} got, err := io.ReadAll(os.Stdin) if err != nil { fatalErr(err) } fatalErr(json.Unmarshal(got, &input)) inputs = []string{input.File} *keyHex = input.Key case len(flag.Args()) == 1:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Feb 17 17:09:42 GMT 2025 - 5.7K bytes - Click Count (0) -
tests/test_deprecated_responses.py
response = client.get("/items") assert response.status_code == 200 assert response.json() == {"name": "widget", "price": 9.99} def test_orjson_response_emits_deprecation_warning(): with pytest.warns(FastAPIDeprecationWarning, match="ORJSONResponse is deprecated"): ORJSONResponse(content={"hello": "world"}) # UJSON def _make_ujson_app() -> FastAPI: with warnings.catch_warnings():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 2K bytes - Click Count (0)