Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3851 - 3860 of 4,168 for get (0.01 seconds)

  1. docs/zh-hant/docs/tutorial/testing.md

    沿用先前相同的檔案結構:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    假設現在你的 **FastAPI** 應用所在的 `main.py` 有一些其他的路徑操作(path operations)。
    
    它有一個可能回傳錯誤的 `GET` 操作。
    
    它有一個可能回傳多種錯誤的 `POST` 操作。
    
    兩個路徑操作都需要一個 `X-Token` 標頭(header)。
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### 擴充的測試檔案 { #extended-testing-file }
    
    接著你可以把 `test_main.py` 更新為擴充後的測試:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/testing.md

    让我们继续之前的文件结构:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    假设现在包含**FastAPI** app的文件 `main.py` 有些其他**路径操作**。
    
    有个 `GET` 操作会返回错误。
    
    有个 `POST` 操作会返回一些错误。
    
    所有*路径操作* 都需要一个`X-Token` 头。
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### 扩展后的测试文件 { #extended-testing-file }
    
    然后您可以使用扩展后的测试更新`test_main.py`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  3. build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/BwcVersionsTests.java

        }
    
        private BwcVersions getVersionCollection(String currentVersion) {
            return new BwcVersions(
                sampleVersions.get(currentVersion).stream().map(this::formatVersionToLine).collect(Collectors.toList()),
                Version.fromString(currentVersion)
            );
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 23.7K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

        platform.assumeJdkVersion(11)
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val platform = Platform.get()
        val platformDefaultCipherSuites =
          platform.newSslSocketFactory(platform.platformTrustManager()).defaultCipherSuites
        val cipherSuites =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Sep 16 07:21:43 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/cors.md

    * `allow_methods` - Une liste de méthodes HTTP qui doivent être autorisées pour les requêtes cross-origin. Par défaut `['GET']`. Vous pouvez utiliser `['*']` pour autoriser toutes les méthodes standard.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/testing.md

    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Digamos que agora o arquivo `main.py` com sua aplicação **FastAPI** tenha algumas outras **operações de rotas**.
    
    Ele tem uma operação `GET` que pode retornar um erro.
    
    Ele tem uma operação `POST` que pode retornar vários erros.
    
    Ambas as *operações de rotas* requerem um cabeçalho `X-Token`.
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/async-tests.md

    ///
    
    我们现在可以使用应用程序创建一个 `AsyncClient` ,并使用 `await` 向其发送异步请求。
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    这相当于:
    
    ```Python
    response = client.get('/')
    ```
    
    ...我们曾经通过它向 `TestClient` 发出请求。
    
    /// tip | 提示
    
    请注意,我们正在将 async/await 与新的 `AsyncClient` 一起使用——请求是异步的。
    
    ///
    
    /// warning | 警告
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. docs/pt/docs/async.md

    ```Python
    results = await some_library()
    ```
    
    Então, declare suas *funções de operação de rota* com `async def` como:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    /// note | Nota
    
    Você só pode usar `await` dentro de funções criadas com `async def`.
    
    ///
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 25.2K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

                    final String value;
                    if (isMaskedValue(k)) {
                        value = MASKED_VALUE;
                    } else {
                        value = config.get(k);
                    }
                    itemList.add(createItem(k, value));
                });
            }
            return itemList;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTest.java

                    userHome,
                    List.of("eu.maveniverse.maven.plugins:toolbox:" + Environment.TOOLBOX_VERSION + ":dump"),
                    List.of("--force-interactive"));
    
            String log = logs.get("eu.maveniverse.maven.plugins:toolbox:" + Environment.TOOLBOX_VERSION + ":dump");
            assertTrue(log.contains("https://repo1.maven.org/maven2"), log);
            assertFalse(log.contains("https://repo.maven.apache.org/maven2"), log);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 21 12:17:55 GMT 2025
    - 9.3K bytes
    - Click Count (0)
Back to Top