Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1271 - 1280 of 3,208 for gone (0.01 sec)

  1. docs/zh/docs/tutorial/body-multiple-params.md

    ## 混合使用 `Path`、`Query` 和请求体参数
    
    首先,毫无疑问地,你可以随意地混合使用 `Path`、`Query` 和请求体参数声明,**FastAPI** 会知道该如何处理。
    
    你还可以通过将默认值设置为 `None` 来将请求体参数声明为可选参数:
    
    {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *}
    
    /// note
    
    请注意,在这种情况下,将从请求体获取的 `item` 是可选的。因为它的默认值为 `None`。
    
    ///
    
    ## 多个请求体参数
    
    在上面的示例中,*路径操作*将期望一个具有 `Item` 的属性的 JSON 请求体,就像:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/config/BaseConfigurationTest.java

        void testInitDefaultsSetsAllFields() throws CIFSException {
            BaseConfiguration testConfig = new BaseConfiguration(false);
            testConfig.initDefaults();
    
            // Check random and time zone
            assertNotNull(testConfig.getRandom());
            assertNotNull(testConfig.getLocalTimezone());
    
            // Check PID is set
            assertTrue(testConfig.getPid() >= 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. docs/zh/docs/environment-variables.md

    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    第二个参数是 <a href="https://docs.python.org/zh-cn/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的默认返回值。
    
    如果没有提供,默认值为 `None`,这里我们提供 `"World"` 作为默认值。
    
    ///
    
    然后你可以调用这个 Python 程序:
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    
    ```console
    // 这里我们还没有设置环境变量
    $ python main.py
    
    // 因为我们没有设置环境变量,所以我们得到的是默认值
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 12:17:15 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. internal/config/storageclass/storage-class.go

    			return Config{}, err
    		}
    	} else {
    		cfg.RRS.Parity = defaultRRSParity
    		if setDriveCount == 1 {
    			cfg.RRS.Parity = 0
    		}
    	}
    
    	// Validation is done after parsing both the storage classes. This is needed because we need one
    	// storage class value to deduce the correct value of the other storage class.
    	if err = validateParity(cfg.Standard.Parity, cfg.RRS.Parity, setDriveCount); err != nil {
    		return Config{}, err
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. docs_src/app_testing/tutorial004_py39.py

            response = client.get("/items/foo")
            assert response.status_code == 200
            assert response.json() == {"name": "Fighters"}
    
            # After the requests is done, the items are still there
            assert items == {"foo": {"name": "Fighters"}, "bar": {"name": "Tenders"}}
    
        # The end of the "with TestClient" block simulates terminating the app, so
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    That means that any value read in Python from an environment variable will be a `str`, and any conversion to a different type or any validation has to be done in code.
    
    ## Pydantic `Settings` { #pydantic-settings }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * java.util.concurrent}, {@code java.util.regex}, {@code com.google.common.base}, {@code
     * com.google.common.collect} and {@code com.google.common.primitives}. In addition, if the type
     * exposes at least one public static final constant of the same type, one of the constants will be
     * used; or if the class exposes a public parameter-less constructor then it will be "new"d and
     * returned.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/BufferCache.java

     * @author mbechler
     *
     * <p>This interface is intended for internal use.</p>
     */
    public interface BufferCache {
    
        /**
         * Gets a buffer from the cache or creates a new one if the cache is empty.
         *
         * @return a buffer from the cache, or a new one
         */
        byte[] getBuffer();
    
        /**
         * Return a buffer to the cache
         *
         * @param buf the buffer to return to the cache for reuse
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  9. scripts/playwright/query_param_models/image01.py

    import subprocess
    import time
    
    import httpx
    from playwright.sync_api import Playwright, sync_playwright
    
    
    # Run playwright codegen to generate the code below, copy paste the sections in run()
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        browser = playwright.chromium.launch(headless=False)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/metadata.md

    ## URLs da Documentação { #docs-urls }
    
    Você pode configurar as duas interfaces de documentação incluídas:
    
    * **Swagger UI**: acessível em `/docs`.
        * Você pode definir sua URL com o parâmetro `docs_url`.
        * Você pode desativá-la definindo `docs_url=None`.
    * **ReDoc**: acessível em `/redoc`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top