- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 285 for Raines (0.18 sec)
-
docs/de/docs/reference/httpconnection.md
# `HTTPConnection`-Klasse Wenn Sie Abhängigkeiten definieren möchten, die sowohl mit HTTP als auch mit WebSockets kompatibel sein sollen, können Sie einen Parameter definieren, der eine `HTTPConnection` anstelle eines `Request` oder eines `WebSocket` akzeptiert. Sie können diese von `fastapi.requests` importieren: ```python from fastapi.requests import HTTPConnection ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:16:16 GMT 2024 - 418 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_04.py
import pytest from fastapi.exceptions import FastAPIError def test_invalid_response_model(): with pytest.raises(FastAPIError): from docs_src.response_model.tutorial003_04 import app
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 10 16:22:47 GMT 2023 - 236 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_04_py310.py
import pytest from fastapi.exceptions import FastAPIError from ...utils import needs_py310 @needs_py310 def test_invalid_response_model(): with pytest.raises(FastAPIError): from docs_src.response_model.tutorial003_04_py310 import app
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 10 16:22:47 GMT 2023 - 289 bytes - Viewed (0) -
docs/de/docs/how-to/separate-openapi-schemas.md
=== "Python 3.10+" ```Python hl_lines="19" {!> ../../../docs_src/separate_openapi_schemas/tutorial001_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="21" {!> ../../../docs_src/separate_openapi_schemas/tutorial001_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="21" {!> ../../../docs_src/separate_openapi_schemas/tutorial001.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:18:03 GMT 2024 - 7.3K bytes - Viewed (0) -
tests/test_empty_router.py
assert response.status_code == 200, response.text assert response.json() == ["OK"] def test_include_empty(): # if both include and router.path are empty - it should raise exception with pytest.raises(FastAPIError):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 22:37:34 GMT 2023 - 805 bytes - Viewed (0) -
tests/test_additional_responses_bad.py
}, "summary": "A", "operationId": "a_a_get", } } }, } client = TestClient(app) def test_openapi_schema(): with pytest.raises(ValueError):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 1.1K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/IsProbablyUtf8Test.kt
class IsProbablyUtf8Test { @Test fun isProbablyUtf8() { assertThat(Buffer().isProbablyUtf8()).isTrue() assertThat(Buffer().writeUtf8("abc").isProbablyUtf8()).isTrue() assertThat(Buffer().writeUtf8("new\r\nlines").isProbablyUtf8()).isTrue() assertThat(Buffer().writeUtf8("white\t space").isProbablyUtf8()).isTrue() assertThat(Buffer().writeByte(0x80).isProbablyUtf8()).isTrue()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 1.3K bytes - Viewed (0) -
docs/de/docs/advanced/additional-responses.md
Um beispielsweise eine weitere Response mit dem Statuscode `404` und einem Pydantic-Modell `Message` zu deklarieren, können Sie schreiben: ```Python hl_lines="18 22" {!../../../docs_src/additional_responses/tutorial001.py!} ``` !!! note "Hinweis" Beachten Sie, dass Sie die `JSONResponse` direkt zurückgeben müssen. !!! info
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:19:26 GMT 2024 - 9.6K bytes - Viewed (0) -
tests/test_route_scope.py
data = websocket.receive_json() assert data == {"item_id": "portal-gun", "path": "/items/{item_id}"} def test_websocket_invalid_path_doesnt_match(): with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/itemsx/portal-gun"):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Feb 08 10:23:07 GMT 2023 - 1.5K bytes - Viewed (0) -
docs/de/docs/advanced/using-request-directly.md
Angenommen, Sie möchten auf die IP-Adresse/den Host des Clients in Ihrer *Pfadoperation-Funktion* zugreifen. Dazu müssen Sie direkt auf den Request zugreifen. ```Python hl_lines="1 7-8" {!../../../docs_src/using_request_directly/tutorial001.py!} ``` Durch die Deklaration eines *Pfadoperation-Funktionsparameters*, dessen Typ der `Request` ist, weiß **FastAPI**, dass es den `Request` diesem Parameter übergeben soll. !!! tip "Tipp"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:18:32 GMT 2024 - 2.5K bytes - Viewed (0)