Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,904 for getA (9.14 sec)

  1. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final Map<String, Object> dest = newHashMap();
            BeanUtil.copyBeanToMap(src, dest);
            assertThat(dest.get("aaa"), is((Object) "aaa"));
            assertThat(dest.get("bbb"), is(nullValue()));
            assertThat(dest.get("ccc"), is((Object) "ccc"));
            assertThat(dest.get("ddd"), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/security/get-current-user.md

        ```Python hl_lines="3  10-14"
        {!> ../../../docs_src/security/tutorial002_py310.py!}
        ```
    
    ## `get_current_user` 의존성 생성하기
    
    의존성 `get_current_user`를 만들어 봅시다.
    
    의존성이 하위 의존성을 가질 수 있다는 것을 기억하십니까?
    
    `get_current_user`는 이전에 생성한 것과 동일한 `oauth2_scheme`과 종속성을 갖게 됩니다.
    
    이전에 *경로 작동*에서 직접 수행했던 것과 동일하게 새 종속성 `get_current_user`는 하위 종속성 `oauth2_scheme`에서 `str`로 `token`을 수신합니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="25"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/get-current-user.md

    {!../../../docs_src/security/tutorial002.py!}
    ```
    
    ## 创建 `get_current_user` 依赖项
    
    创建 `get_current_user` 依赖项。
    
    还记得依赖项支持子依赖项吗?
    
    `get_current_user` 使用 `oauth2_scheme` 作为依赖项。
    
    与之前直接在路径操作中的做法相同,新的 `get_current_user` 依赖项从子依赖项 `oauth2_scheme` 中接收 `str` 类型的 `token`:
    
    ```Python hl_lines="25"
    {!../../../docs_src/security/tutorial002.py!}
    ```
    
    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/security/get-current-user.md

        ```
    
    ## Eine `get_current_user`-Abhängigkeit erstellen
    
    Erstellen wir eine Abhängigkeit `get_current_user`.
    
    Erinnern Sie sich, dass Abhängigkeiten Unterabhängigkeiten haben können?
    
    `get_current_user` wird seinerseits von `oauth2_scheme` abhängen, das wir zuvor erstellt haben.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:05 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Objects.java

       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
       * has three properties, {@code x}, {@code y}, and {@code z}, one could write:
       *
       * <pre>{@code
       * public int hashCode() {
       *   return Objects.hashCode(getX(), getY(), getZ());
       * }
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Objects.java

       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
       * has three properties, {@code x}, {@code y}, and {@code z}, one could write:
       *
       * <pre>{@code
       * public int hashCode() {
       *   return Objects.hashCode(getX(), getY(), getZ());
       * }
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(response.body.string()).isEqualTo("response body")
        val get1 = server.takeRequest()
        assertThat(get1.requestLine).isEqualTo("GET http://android.com/foo HTTP/1.1")
        assertThat(get1.headers["Proxy-Authorization"]).isNull()
        val get2 = server.takeRequest()
        assertThat(get2.requestLine).isEqualTo("GET http://android.com/foo HTTP/1.1")
        assertThat(get2.headers["Proxy-Authorization"]).isEqualTo("password")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

            this.result = result;
        }
    
        /**
         * Gets the interim result of the model building up to the point where it failed.
         *
         * @return The interim model building result or {@code null} if not available.
         */
        public ModelBuilderResult getResult() {
            return result;
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. tests/test_dependency_normal_exceptions.py

    
    @app.put("/invalid-user/{user_id}")
    def put_invalid_user(
        user_id: str, name: str = Body(), db: dict = Depends(get_database)
    ):
        db[user_id] = name
        raise HTTPException(status_code=400, detail="Invalid user")
    
    
    @app.put("/user/{user_id}")
    def put_user(user_id: str, name: str = Body(), db: dict = Depends(get_database)):
        db[user_id] = name
        return {"message": "OK"}
    
    
    @pytest.fixture(autouse=True)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        @Nonnull
        Instant getStartTime();
    
        /**
         * Gets the directory of the topmost project being built, usually the current directory or the
         * directory pointed at by the {@code -f/--file} command line argument.
         */
        @Nonnull
        Path getTopDirectory();
    
        /**
         * Gets the root directory of the session, which is the root directory for the top directory project.
         *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
Back to top