Search Options

Results per page
Sort
Preferred Languages
Advance

Results 651 - 660 of 3,152 for get2 (0.04 sec)

  1. docs/zh/docs/tutorial/first-steps.md

    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `@app.get("/")` 告诉 **FastAPI** 在它下方的函数负责处理如下访问请求:
    
    * 请求路径为 `/`
    * 使用 <abbr title="HTTP GET 方法"><code>get</code> 操作</abbr>
    
    /// info | "`@decorator` Info"
    
    `@something` 语法在 Python 中被称为「装饰器」。
    
    像一顶漂亮的装饰帽一样,将它放在一个函数的上方(我猜测这个术语的命名就是这么来的)。
    
    装饰器接收位于其下方的函数并且用它完成一些工作。
    
    在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。
    
    它是一个「**路径操作装饰器**」。
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. docs/vi/docs/tutorial/first-steps.md

    ```Python hl_lines="6"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `@app.get("/")` nói **FastAPI** rằng hàm bên dưới có trách nhiệm xử lí request tới:
    
    * đường dẫn `/`
    * sử dụng một <abbr title="an HTTP GET method">toán tử<code>get</code></abbr>
    
    /// info | Thông tin về "`@decorator`"
    
    Cú pháp `@something` trong Python được gọi là một "decorator".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_cookie_params/test_tutorial001_an.py

    def test(path, cookies, expected_status, expected_response):
        client = TestClient(app, cookies=cookies)
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_openapi_schema():
        client = TestClient(app)
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/bsbhv/BsRoleTypeBhv.java

                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setSortOrder(DfTypeUtil.toInteger(source.get("sortOrder")));
                result.setUpdatedBy(DfTypeUtil.toString(source.get("updatedBy")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle

            delegate,
            acceptedViolations,
            apiSourceFolders,
            baseVersion.get(),
            mainApiChangesJsonFile.asFile,
            project.isolated.rootProject.projectDirectory,
            currentUpgradedPropertiesFile.get().asFile,
            baselineUpgradedPropertiesFile.get().asFile
        )
    }
    tasks.named("check").configure { dependsOn(checkBinaryCompatibility) }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jul 26 08:15:16 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>If {@code !range.contains(k)}, {@link #get(Comparable) get(k)} will return the same result
       * before and after a call to {@code remove(range)}. If {@code range.contains(k)}, then after a
       * call to {@code remove(range)}, {@code get(k)} will return {@code null}.
       */
      void remove(Range<K> range);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            ComponentRequirement cr = md.getRequirements().get(0);
    
            assertEquals("org.codehaus.plexus.archiver.Archiver", cr.getRole());
            assertEquals("jar", cr.getRoleHint());
            assertEquals("jarArchiver", cr.getFieldName());
    
            ComponentDependency cd = pd.getDependencies().get(0);
    
            assertEquals("org.apache.maven", cd.getGroupId());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

        constructorsSupplier.get().firstOrNull { c -> jvmSignature == c.signature?.toString() }?.let { predicate.match(it) } ?: false
    
    
    private
    fun hasFunctionAttribute(functionsSupplier: Supplier<MutableList<KmFunction>>, jvmSignature: String, predicate: AttributePredicate) =
        functionsSupplier.get().firstOrNull {
            jvmSignature == it.signature?.toString()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 11:57:24 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_advanced_middleware/test_tutorial002.py

        client = TestClient(app, base_url="http://example.com")
        response = client.get("/")
        assert response.status_code == 200, response.text
        client = TestClient(app, base_url="http://subdomain.example.com")
        response = client.get("/")
        assert response.status_code == 200, response.text
        client = TestClient(app, base_url="http://invalidhost")
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 570 bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top