Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1641 - 1650 of 1,900 for checks (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh-hant/docs/tutorial/security/simple-oauth2.md

    現在,從(假的)資料庫裡用表單欄位的 `username` 取得使用者資料。
    
    如果沒有該使用者,就回傳「Incorrect username or password」的錯誤。
    
    我們用 `HTTPException` 這個例外來回傳錯誤:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[3,79:81] *}
    
    ### 檢查密碼 { #check-the-password }
    
    這時我們已經有來自資料庫的使用者資料,但還沒檢查密碼。
    
    先把那些資料放進 Pydantic 的 `UserInDB` 模型。
    
    你絕對不要以純文字儲存密碼,所以我們會使用(假的)密碼雜湊系統。
    
    如果密碼不匹配,我們回傳同樣的錯誤。
    
    #### 密碼雜湊(hashing) { #password-hashing }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/dependencies/index.md

    common_parameters(["common_parameters"])
    read_items["/items/"]
    read_users["/users/"]
    
    common_parameters --> read_items
    common_parameters --> read_users
    ```
    
    这样,你只需编写一次共享代码,**FastAPI** 会在你的*路径操作*中为你调用它。
    
    /// check | 检查
    
    注意,无需创建专门的类并传给 **FastAPI** 去“注册”之类的操作。
    
    只要把它传给 `Depends`,**FastAPI** 就知道该怎么做了。
    
    ///
    
    ## 共享 `Annotated` 依赖项 { #share-annotated-dependencies }
    
    在上面的示例中,你会发现这里有一点点**代码重复**。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  3. misc/cgo/gmp/gmp.go

    func GcdInt(d, x, y, a, b *Int) {
    	d.doinit()
    	x.doinit()
    	y.doinit()
    	a.doinit()
    	b.doinit()
    	C.mpz_gcdext(&d.i[0], &x.i[0], &y.i[0], &a.i[0], &b.i[0])
    }
    
    // ProbablyPrime performs n Miller-Rabin tests to check whether z is prime.
    // If it returns true, z is prime with probability 1 - 1/4^n.
    // If it returns false, z is not prime.
    func (z *Int) ProbablyPrime(n int) bool {
    	z.doinit()
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Click Count (0)
  4. cmd/metacache-stream.go

    		return false
    	}
    	// We have checked if prefix matches, so we can do direct compare.
    	return b.First > prefix
    }
    
    // endedPrefix returns true if the given prefix ends within the block.
    func (b metacacheBlock) endedPrefix(prefix string) bool {
    	if prefix == "" || strings.HasPrefix(b.Last, prefix) {
    		return false
    	}
    
    	// We have checked if prefix matches, so we can do direct compare.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 07 15:37:12 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            void testReadSizeProperty() {
                testMessage.setReadSize(1024);
                // No getter for readSize, but it's used internally in decode
            }
    
            @Test
            @DisplayName("Should check if async")
            void testAsyncProperty() {
                assertFalse(testMessage.isAsync());
            }
        }
    
        @Nested
        @DisplayName("Flag Operations Tests")
        class FlagOperationsTests {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  6. CHANGELOG/CHANGELOG-1.3.md

    * Increase request timeout based on termination grace period ([#31275](https://github.com/kubernetes/kubernetes/pull/31275), [@dims](https://github.com/dims))
    * Skip safe to detach check if node API object no longer exists ([#30737](https://github.com/kubernetes/kubernetes/pull/30737), [@saad-ali](https://github.com/saad-ali))
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu Dec 24 02:28:26 GMT 2020
    - 84K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                            new String(Arrays.copyOfRange(targetInfo, 4, 4 + TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length),
                                    Type2Message.UNI_ENCODING));
    
                    // Verify server part - check if it exists
                    int serverOffset = 4 + TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length;
                    if (serverOffset + 4 <= targetInfo.length) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/AbstractCache.java

       * possible with an unsafe cast which requires {@code keys} to actually be of type {@code K}.
       *
       * @since 11.0
       */
      /*
       * <? extends Object> is mostly the same as <?> to plain Java. But to nullness checkers, they
       * differ: <? extends Object> means "non-null types," while <?> means "all types."
       */
      @Override
      public ImmutableMap<K, V> getAllPresent(Iterable<? extends Object> keys) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

         * in O(n) time stepping through the two collections.
         */
        Iterator<E> thisIterator = iterator();
    
        Iterator<?> thatIterator = targets.iterator();
        // known nonempty since we checked targets.size() > 1
    
        if (!thisIterator.hasNext()) {
          return false;
        }
    
        Object target = thatIterator.next();
        E current = thisIterator.next();
        try {
          while (true) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

          apply {
            val identityBody =
              body
                ?: throw IllegalStateException("cannot gzip a request that has no body")
    
            val contentEncoding = headers["Content-Encoding"]
            check(contentEncoding == null) {
              "Content-Encoding already set: $contentEncoding"
            }
    
            headers.add("Content-Encoding", "gzip")
            body = GzipRequestBody(identityBody)
          }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 14.7K bytes
    - Click Count (1)
Back to Top