Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1131 - 1140 of 2,619 for gets (0.25 sec)

  1. docs_src/security/tutorial005_py39.py

        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            scope: str = payload.get("scope", "")
            token_scopes = scope.split(" ")
            token_data = TokenData(scopes=token_scopes, username=username)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_custom_response/test_tutorial001.py

        return client
    
    
    def test_get_custom_response(client: TestClient):
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          return;
        }
        assertNull(map.get(unmappedKey));
      }
    
      public void testGetNull() {
        Map<K, V> map = makeEitherMap();
        if (allowsNullKeys) {
          if (allowsNullValues) {
            // TODO: decide what to test here.
          } else {
            assertEquals(map.containsKey(null), map.get(null) != null);
          }
        } else {
          try {
            V unused = map.get(null);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  4. docs/zh-hant/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py h1[6] *}
    
    `@app.get("/")` 告訴 **FastAPI** 那個函式負責處理請求:
    
    * 路徑 `/`
    * 使用 <abbr title="HTTP GET 方法"><code>get</code>操作</abbr>
    
    /// info | `@decorator` Info
    
    Python 中的 `@something` 語法被稱為「裝飾器」。
    
    你把它放在一個函式上面。像一個漂亮的裝飾帽子(我猜這是術語的來源)。
    
    一個「裝飾器」會對下面的函式做一些事情。
    
    在這種情況下,這個裝飾器告訴 **FastAPI** 那個函式對應於 **路徑** `/` 和 **操作** `get`.
    
    這就是「**路徑操作裝飾器**」。
    
    ///
    
    你也可以使用其他的操作:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/first-steps.md

    우리 역시 이제부터 메소드를 "**작동**"이라고 부를 것입니다.
    
    #### *경로 작동 데코레이터* 정의
    
    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    
    `@app.get("/")`은 **FastAPI**에게 바로 아래에 있는 함수가 다음으로 이동하는 요청을 처리한다는 것을 알려줍니다.
    
    * 경로 `/`
    * <abbr title="HTTP GET 메소드"><code>get</code> 작동</abbr> 사용
    
    /// info | `@decorator` 정보
    
    이 `@something` 문법은 파이썬에서 "데코레이터"라 부릅니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. docs_src/path_operation_configuration/tutorial002_py310.py

        tags: set[str] = set()
    
    
    @app.post("/items/", response_model=Item, tags=["items"])
    async def create_item(item: Item):
        return item
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 537 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py

        ],
    )
    def test_get_path(client: TestClient, path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsElevateWordBhv.java

                result.setBoost(DfTypeUtil.toFloat(source.get("boost")));
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setPermissions(toStringArray(source.get("permissions")));
                result.setReading(DfTypeUtil.toString(source.get("reading")));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. buildSrc/src/main/kotlin/Osgi.kt

      }
    }
    
    val Project.sourceSets: SourceSetContainer
      get() = (this as ExtensionAware).extensions["sourceSets"] as SourceSetContainer
    
    private val Project.kotlinOsgi: MinimalExternalModuleDependency
      get() =
        extensions
          .getByType(VersionCatalogsExtension::class.java)
          .named("libs")
          .findLibrary("kotlin.stdlib.osgi")
          .get()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 01 08:06:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

              public void run() {
                threadLocalCount.set(threadLocalCount.get() + 1);
              }
            };
    
        FutureTask<@Nullable Void> otherTask =
            new FutureTask<>(
                () -> {
                  Future<?> future = executor.submit(incrementTask);
                  assertTrue(future.isDone());
                  assertEquals(1, threadLocalCount.get().intValue());
                  return null;
                });
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
Back to top