Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 368 for WORLD (0.07 seconds)

  1. 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)
  2. docs_src/behind_a_proxy/tutorial004_py310.py

        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @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
    - 437 bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. docs_src/behind_a_proxy/tutorial001_py310.py

    from fastapi import FastAPI, Request
    
    app = FastAPI()
    
    
    @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
    - 189 bytes
    - Click Count (0)
  6. docs/zh/docs/virtual-environments.md

    pydantic==2.8.0
    ```
    
    ///
    
    ## 运行程序 { #run-your-program }
    
    在你激活虚拟环境后,你可以运行你的程序,它将使用虚拟环境中的 Python 和你在其中安装的软件包。
    
    <div class="termy">
    
    ```console
    $ python main.py
    
    Hello World
    ```
    
    </div>
    
    ## 配置编辑器 { #configure-your-editor }
    
    你可能会用到编辑器,请确保配置它使用与你创建的相同的虚拟环境(它可能会自动检测到),以便你可以获得自动补全和内联错误提示。
    
    例如:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  7. docs_src/behind_a_proxy/tutorial002_py310.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(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
    - 208 bytes
    - Click Count (0)
  8. 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)
  9. 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)
  10. src/cmd/cgo/doc.go

    	type _Ctype_void [0]byte
    
    The _cgo_gotypes.go file also contains the definitions of the
    functions. They all have similar bodies that invoke runtime·cgocall
    to make a switch from the Go runtime world to the system C (GCC-based)
    world.
    
    For example, here is the definition of _Cfunc_puts:
    
    	//go:cgo_import_static _cgo_be59f0f25121_Cfunc_puts
    	//go:linkname __cgofn__cgo_be59f0f25121_Cfunc_puts _cgo_be59f0f25121_Cfunc_puts
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Dec 08 22:37:14 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top