Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 736 for depende (0.05 seconds)

  1. docs/zh/docs/advanced/websockets.md

    <img src="/img/tutorial/websockets/image03.png">
    
    您可以发送(和接收)多条消息:
    
    <img src="/img/tutorial/websockets/image04.png">
    
    所有这些消息都将使用同一个 WebSocket 连接。
    
    ## 使用 `Depends` 和其他依赖项 { #using-depends-and-others }
    
    在 WebSocket 端点中,您可以从 `fastapi` 导入并使用以下内容:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    它们的工作方式与其他 FastAPI 端点/*路径操作* 相同:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/advanced/advanced-dependencies.md

    含有 `yield` 的相依隨著時間演進,以涵蓋不同的使用情境並修正一些問題。以下是變更摘要。
    
    ### 含有 `yield` 與 `scope` 的相依 { #dependencies-with-yield-and-scope }
    
    在 0.121.0 版中,FastAPI 為含有 `yield` 的相依加入了 `Depends(scope="function")` 的支援。
    
    使用 `Depends(scope="function")` 時,`yield` 之後的結束程式碼會在「路徑操作函式」執行完畢後立刻執行,在回應發送回客戶端之前。
    
    而當使用 `Depends(scope="request")`(預設值)時,`yield` 之後的結束程式碼會在回應送出之後才執行。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  3. guava/src/com/google/common/base/Function.java

       *
       * <p><b>Warning: do not depend</b> on the behavior of this method.
       *
       * <p>Historically, {@code Function} instances in this library have implemented this method to
       * recognize certain cases where distinct {@code Function} instances would in fact behave
       * identically. However, as code migrates to {@code java.util.function}, that behavior will
       * disappear. It is best not to depend on it.
       */
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Apr 15 22:14:00 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/advanced-dependencies.md

    ### `yield`와 `scope`가 있는 의존성 { #dependencies-with-yield-and-scope }
    
    0.121.0 버전에서 FastAPI는 `Depends(scope="function")` 지원을 추가했습니다.
    
    `Depends(scope="function")`를 사용하면, `yield` 이후의 종료 코드는 *경로 처리 함수*가 끝난 직후(클라이언트에 응답이 반환되기 전)에 실행됩니다.
    
    그리고 `Depends(scope="request")`(기본값)를 사용하면, `yield` 이후의 종료 코드는 응답이 전송된 후에 실행됩니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Supplier.java

       *
       * <p><b>Warning: do not depend</b> on the behavior of this method.
       *
       * <p>Historically, {@code Supplier} instances in this library have implemented this method to
       * recognize certain cases where distinct {@code Supplier} instances would in fact behave
       * identically. However, as code migrates to {@code java.util.function}, that behavior will
       * disappear. It is best not to depend on it.
       */
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jun 19 17:20:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/advanced-dependencies.md

    带 `yield` 的依赖项随着时间演进以覆盖不同用例并修复一些问题,下面是变更摘要。
    
    ### 带 `yield` 的依赖项与 `scope` { #dependencies-with-yield-and-scope }
    
    在 0.121.0 版本中,FastAPI 为带 `yield` 的依赖项新增了 `Depends(scope="function")` 的支持。
    
    使用 `Depends(scope="function")` 时,`yield` 之后的退出代码会在*路径操作函数*结束后、响应发送给客户端之前立即执行。
    
    而当使用默认的 `Depends(scope="request")` 时,`yield` 之后的退出代码会在响应发送之后执行。
    
    你可以在文档 [带 `yield` 的依赖项 - 提前退出与 `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope) 中了解更多。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    有時在你的路徑操作函式中,其實不需要某個依賴的回傳值。
    
    或是該依賴根本沒有回傳值。
    
    但你仍需要它被執行/解析。
    
    這種情況下,你可以不在路徑操作函式的參數上使用 `Depends`,而是在路徑操作裝飾器加入一個 `dependencies` 的 `list`。
    
    ## 在路徑操作裝飾器加入 `dependencies` { #add-dependencies-to-the-path-operation-decorator }
    
    路徑操作裝飾器可接受一個可選參數 `dependencies`。
    
    它應該是由 `Depends()` 組成的 `list`:
    
    {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  8. docs/ja/docs/advanced/security/oauth2-scopes.md

    そのために、`fastapi` から `Security` をインポートして使います。
    
    `Security` は(`Depends` と同様に)依存関係を宣言できますが、さらにスコープ(文字列)のリストを受け取る `scopes` パラメータも持ちます。
    
    この場合、`Security` に依存関数 `get_current_active_user` を渡します(`Depends` と同様です)。
    
    加えて、`items` という 1 つのスコープ(複数でも可)を含む `list` も渡します。
    
    依存関数 `get_current_active_user` は、`Depends` だけでなく `Security` でもサブ依存関係を宣言できます。自身のサブ依存関数(`get_current_user`)を宣言し、さらにスコープ要件を追加します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/base/Predicate.java

       *
       * <p><b>Warning: do not depend</b> on the behavior of this method.
       *
       * <p>Historically, {@code Predicate} instances in this library have implemented this method to
       * recognize certain cases where distinct {@code Predicate} instances would in fact behave
       * identically. However, as code migrates to {@code java.util.function}, that behavior will
       * disappear. It is best not to depend on it.
       */
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 18 15:22:00 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  10. dbflute.xml

    	<target name="mydbflute.check">
    		<condition property="mydbflute.exists">
    			<available file="${mydbflute.dir}" type="dir" />
    		</condition>
    	</target>
    
    	<target name="download.dbflute" depends="mydbflute.check" unless="mydbflute.exists">
    		<mkdir dir="${mydbflute.dir}" />
    		<get dest="${target.dir}/mydbflute.zip">
    			<url url="${mydbflute.url}" />
    		</get>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Feb 12 06:33:24 GMT 2026
    - 999 bytes
    - Click Count (0)
Back to Top