- Sort Score
- Result 10 results
- Languages All
Results 821 - 830 of 2,088 for dpath (0.03 sec)
-
tests/test_ambiguous_params.py
import pytest from fastapi import Depends, FastAPI, Path from fastapi.param_functions import Query from fastapi.testclient import TestClient app = FastAPI() def test_no_annotated_defaults(): with pytest.raises( AssertionError, match="Path parameters cannot have a default value" ): @app.get("/items/{item_id}/") async def get_item(item_id: Annotated[int, Path(default=1)]): pass # pragma: nocover
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 2K bytes - Viewed (1) -
tests/test_computed_fields.py
client = TestClient(app) return client @pytest.mark.parametrize("client", [True, False], indirect=True) @pytest.mark.parametrize("path", ["/", "/responses"]) def test_get(client: TestClient, path: str): response = client.get(path) assert response.status_code == 200, response.text assert response.json() == {"width": 3, "length": 4, "area": 12}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
*/ public String getDfsPath() throws SmbException { resolveDfs(null); if (dfsReferral == null) { return null; } String path = "smb1:/" + dfsReferral.server + "/" + dfsReferral.share + unc; path = path.replace('\\', '/'); if (isDirectory()) { path += '/'; } return path; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
docs/es/docs/async.md
Si tienes bastante conocimiento técnico (coroutines, hilos, bloqueo, etc.) y tienes curiosidad sobre cómo FastAPI maneja `async def` vs `def` normal, adelante. /// ### Funciones de *path operation* { #path-operation-functions } Cuando declaras una *path operation function* con `def` normal en lugar de `async def`, se ejecuta en un threadpool externo que luego es esperado, en lugar de ser llamado directamente (ya que bloquearía el servidor).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 10:15:01 UTC 2025 - 25.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/middleware.md
# ミドルウェア **FastAPI** アプリケーションにミドルウェアを追加できます。 「ミドルウェア」は、すべての**リクエスト**に対して、それがあらゆる特定の*path operation*によって処理される前に機能する関数です。また、すべての**レスポンス**に対して、それを返す前に機能します。 * ミドルウェアはアプリケーションに届いたそれぞれの**リクエスト**を受け取ります。 * その後、その**リクエスト**に対して何かを実行したり、必要なコードを実行したりできます。 * 次に、アプリケーションの残りの部分に**リクエスト**を渡して (*path operation* によって) 処理させます。 * 次に、ミドルウェアはアプリケーション (の *path operation*) によって生成された**レスポンス**を受け取ります。 * その**レスポンス**に対して何かを実行したり、必要なコードを実行したりできます。 * そして、**レスポンス**を返します。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 3.8K bytes - Viewed (0) -
docs/es/docs/tutorial/schema-extra-example.md
Esto no va dentro de cada JSON Schema contenido en OpenAPI, esto va afuera, directamente en la *path operation*. ### Usando el Parámetro `openapi_examples` { #using-the-openapi-examples-parameter } Puedes declarar los `examples` específicos de OpenAPI en FastAPI con el parámetro `openapi_examples` para: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()`Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java
void fixupDomain(String domain); /** * Reduces path consumed by the given value * * @param i the number of characters to strip from path consumed */ void stripPathConsumed(int i); @Override DfsReferralDataInternal next(); /** * Set the UNC path link for this referral * * @param link the UNC path link to set */ void setLink(String link); /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferral.java
*/ public class Trans2GetDfsReferral extends SmbComTransaction { private final int maxReferralLevel; private final DfsReferralRequestBuffer request; /** * Constructs a Trans2GetDfsReferral request with default referral level. * * @param config the configuration to use * @param filename the DFS path to get referrals for */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java
* @return a {@code Source} pointing to the located pom or an empty {@code Optional} if none was found by this parser */ @Nonnull Optional<Source> locate(@Nonnull Path dir); /** * Parse the model obtained previously by a previous call to {@link #locate(Path)}. * * @param source the source to parse, never {@code null} * @param options possible parsing options, may be {@code null}Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Sep 10 17:18:47 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/handler-utils.go
globalBucketHTTPStats.updateHTTPStats(bucket, api, tc.ResponseRecorder) } } } } // Returns "/bucketName/objectName" for path-style or virtual-host-style requests. func getResource(path string, host string, domains []string) (string, error) { if len(domains) == 0 { return path, nil } // If virtual-host-style is enabled construct the "resource" properly. xhost, err := xnet.ParseHost(host) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 16.4K bytes - Viewed (1)