- Sort Score
- Result 10 results
- Languages All
Results 1121 - 1130 of 1,889 for pathOf (0.36 sec)
-
docs/zh/docs/tutorial/dependencies/global-dependencies.md
# 全局依赖项 有时,我们要为整个应用添加依赖项。 通过与定义[*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 类似的方式,可以把依赖项添加至整个 `FastAPI` 应用。 这样一来,就可以为所有*路径操作*应用该依赖项: {* ../../docs_src/dependencies/tutorial012.py hl[15] *} [*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 一章的思路均适用于全局依赖项, 在本例中,这些依赖项可以用于应用中的所有*路径操作*。 ## 为一组路径操作定义依赖项Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 936 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial002.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.4K bytes - Viewed (0) -
cmd/test-utils_test.go
req.Header.Set("Expires", expiresStr) } // url.RawPath will be valid if path has any encoded characters, if not it will // be empty - in which case we need to consider url.Path (bug in net/http?) encodedResource := req.URL.RawPath encodedQuery := req.URL.RawQuery if encodedResource == "" { splits := strings.SplitN(req.URL.Path, "?", 2) encodedResource = splits[0] if len(splits) == 2 { encodedQuery = splits[1]
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 77K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/UrlConvertHelper.java
* * <pre>{@code * UrlConvertHelper helper = new UrlConvertHelper(); * helper.add("old-domain.com", "new-domain.com"); * String convertedUrl = helper.convert("http://old-domain.com/path"); * // convertedUrl will be "http://new-domain.com/path" * }</pre> */ /** * This class is a helper for URL conversion. */ public class UrlConvertHelper { /** * Creates a new UrlConvertHelper instance. */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/iam/access-manager-plugin.go
"fmt" "io" "log" "net/http" "strings" ) var ( keyFile string certFile string ) func init() { flag.StringVar(&keyFile, "key-file", "", "Path to TLS cert key file") flag.StringVar(&certFile, "cert-file", "", "Path to TLS cert file") } func writeErrorResponse(w http.ResponseWriter, err error) { w.WriteHeader(http.StatusBadRequest) json.NewEncoder(w).Encode(map[string]string{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Feb 08 17:15:20 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
} @Test @DisplayName("available() on SMB2 returns peeked byte count and interacts with tree") void available_smb2_happyPath() throws Exception { // Verify SMB2 path: IOCTL peek result is returned and resources are closed SmbPipeInputStream stream = newStreamWithMinimalStubs(true); // Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
private lateinit var compactTable: IdnaMappingTable @BeforeEach fun setUp() { val path = "/okhttp3/internal/idna/IdnaMappingTable.txt".toPath() val plainTable = FileSystem.RESOURCES.read(path) { readPlainTextIdnaMappingTable() } table = plainTable val data = buildIdnaMappingTableData(plainTable) compactTable = IdnaMappingTable(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 8.9K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java
assertTrue(options.directory().isPresent(), "--directory option should be present"); assertEquals("/some/path", options.directory().get(), "--directory should be /some/path"); } @Test void testGoalsParsing() throws ParseException { String[] args = {"apply", "--plugins"}; CommonsCliUpgradeOptions options = CommonsCliUpgradeOptions.parse(args);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:48:39 UTC 2025 - 9.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/sub-dependencies.md
* ユーザーがクエリ`q`を提供しなかった場合、クッキーに保存していた最後に使用したクエリを使用します。 ### 依存関係の使用 以下のように依存関係を使用することができます: {* ../../docs_src/dependencies/tutorial005.py hl[21] *} /// info | 情報 *path operation関数*の中で宣言している依存関係は`query_or_cookie_extractor`の1つだけであることに注意してください。 しかし、**FastAPI** は`query_extractor`を最初に解決し、その結果を`query_or_cookie_extractor`を呼び出す時に渡す必要があることを知っています。 /// ```mermaid graph TBRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val persistent: Boolean = cookie.persistent() val expiresAt: Long = cookie.expiresAt() val hostOnly: Boolean = cookie.hostOnly() val domain: String = cookie.domain() val path: String = cookie.path() val httpOnly: Boolean = cookie.httpOnly() val secure: Boolean = cookie.secure() } @Test @Disabled fun formBody() { val formBody: FormBody = FormBody.Builder().build()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0)