- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 936 for rjsonp (0.09 seconds)
-
docs/zh-hant/docs/advanced/response-directly.md
{* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *} 由於這會在 Rust 端發生,效能會比用一般的 Python 與 `JSONResponse` 類別來完成好得多。 當使用 `response_model` 或回傳型別時,FastAPI 不會使用 `jsonable_encoder` 來轉換資料(那會較慢),也不會使用 `JSONResponse` 類別。 相反地,它會取用用回應模型(或回傳型別)透過 Pydantic 產生的 JSON 位元組,並直接回傳具備正確 JSON 媒體型別(`application/json`)的 `Response`。 ## 注意事項 { #notes }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.8K bytes - Click Count (0) -
docs/tr/docs/tutorial/security/simple-oauth2.md
Bir sonraki bölümde, password hashing ve <abbr title="JSON Web Tokens">JWT</abbr> token’ları ile gerçekten güvenli bir implementasyon göreceksiniz. Ama şimdilik ihtiyacımız olan spesifik detaylara odaklanalım. /// {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *} /// tip | İpucu Spesifikasyona göre, bu örnekteki gibi `access_token` ve `token_type` içeren bir JSON döndürmelisiniz.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.4K bytes - Click Count (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
logAsText(entry); // Fallback to text } finally { returnStringBuilder(json); } } private void buildJsonEntry(StringBuilder json, AuditEntry entry) { json.append("{"); json.append("\"timestamp\":\"").append(escapeJson(entry.timestamp.toString())).append("\",");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 26.6K bytes - Click Count (0) -
docs/ru/docs/how-to/general.md
## Преобразование любых данных к формату, совместимому с JSON { #convert-any-data-to-json-compatible } Чтобы преобразовать любые данные к формату, совместимому с JSON, прочитайте документацию: [Руководство — JSON-совместимый кодировщик](../tutorial/encoder.md). ## Метаданные OpenAPI — Документация { #openapi-metadata-docs }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 5K bytes - Click Count (0) -
tests/test_computed_fields.py
assert response.status_code == 200, response.text assert response.json() == {"width": 3, "length": 4, "area": 12} @pytest.mark.parametrize("client", [True, False], indirect=True) def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == snapshot( { "openapi": "3.1.0",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.8K bytes - Click Count (0) -
tests/benchmarks/test_general_performance.py
return benchmark(do_request) def _bench_post_json( benchmark, client: TestClient, path: str, json: dict[str, Any] ) -> tuple[int, bytes]: warmup = client.post(path, json=json) assert warmup.status_code == 200 def do_request() -> tuple[int, bytes]: response = client.post(path, json=json) return response.status_code, response.content return benchmark(do_request)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Dec 26 20:40:26 GMT 2025 - 11.1K bytes - Click Count (0) -
tests/test_swagger_ui_escape.py
openapi_url="/openapi.json", title="Test", init_oauth={"appName": xss_payload}, ) body = html.body.decode() assert "</script><script>" not in body assert "\\u003c/script\\u003e\\u003cscript\\u003e" in body def test_swagger_ui_parameters_html_chars_are_escaped(): html = get_swagger_ui_html( openapi_url="/openapi.json", title="Test",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 1.1K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/streaming.md
## Stream JSON Lines To stream JSON Lines, declare the return type and use `yield` to return the data. ```python @app.get("/items/stream") async def stream_items() -> AsyncIterable[Item]: for item in items: yield item ``` ## Server-Sent Events (SSE) To stream Server-Sent Events, use `response_class=EventSourceResponse` and `yield` items from the endpoint.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 2.5K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py
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_schema(): response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == snapshot( { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"},
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java
/** * Extracts a string value from JSON response using Jackson parser. * * @param json the JSON response * @param key the key to extract * @return the extracted string value */ protected String extractJsonString(final String json, final String key) { try { final String cleanJson = stripCodeFences(json);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 72K bytes - Click Count (0)