- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 368 for World (0.02 seconds)
-
docs/en/docs/alternatives.md
response = requests.get("http://example.com/some/url") ``` The FastAPI counterpart API *path operation* could look like: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` See the similarities in `requests.get(...)` and `@app.get(...)`. /// check | Inspired **FastAPI** to * Have a simple and intuitive API.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 22.2K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py
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_schema(): 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.4K bytes - Click Count (0) -
docs_src/behind_a_proxy/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 189 bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
} } @Test public void test_GzipSuccessResponse_DecompressedCorrectly() throws Exception { // ## Arrange ## String originalBody = "Hello, GZIP world!"; byte[] gzipped = gzipCompress(originalBody); CurlRequest req = new OpenOverrideCurlRequest(Curl.Method.GET, "http://dummy", u -> new GzipSuccessMockHttpURLConnection(u, gzipped)); // ## Act ##Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
docs_src/behind_a_proxy/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 208 bytes - Click Count (0) -
docs_src/app_testing/app_a_py310/test_main.py
from .main import app client = TestClient(app) def test_read_main(): response = client.get("/") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 238 bytes - Click Count (0) -
docs_src/behind_a_proxy/tutorial003_py310.py
{"url": "https://prod.example.com", "description": "Production environment"}, ], root_path="/api/v1", ) @app.get("/app") def read_main(request: Request):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 405 bytes - Click Count (0) -
docs/zh/docs/alternatives.md
```Python response = requests.get("http://example.com/some/url") ``` 对应地,FastAPI 的 API 路径操作可能看起来是这样的: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` 可以看到 `requests.get(...)` 与 `@app.get(...)` 的相似之处。 /// check | 启发 **FastAPI**: * 提供简单直观的 API。 * 直接、自然地使用 HTTP 方法名(操作)。 * 具备合理默认值,同时支持强大定制能力。 ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 20.1K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py
client = TestClient(app, root_path="/api/v1") 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( { "openapi": "3.1.0",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.2K bytes - Click Count (0) -
docs/tr/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> Response şöyle bir şey olur: ```JSON { "message": "Hello World", "root_path": "/api/v1" } ``` ### FastAPI Uygulamasında `root_path` Ayarlama { #setting-the-root-path-in-the-fastapi-app }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 16.5K bytes - Click Count (0)