Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 711 - 720 of 1,302 for sink (0.02 seconds)

  1. docs/ja/docs/tutorial/encoder.md

    ## `jsonable_encoder`の使用
    
    JSON互換のデータのみを受信するデータベース`fake_db`があるとしましょう。
    
    例えば、`datetime`オブジェクトはJSONと互換性がないので、このデーターベースには受け取られません。
    
    そのため、`datetime`オブジェクトは<a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO形式</a>のデータを含む`str`に変換されなければなりません。
    
    同様に、このデータベースはPydanticモデル(属性を持つオブジェクト)を受け取らず、`dict`だけを受け取ります。
    
    そのために`jsonable_encoder`を使用することができます。
    
    Pydanticモデルのようなオブジェクトを受け取り、JSON互換版を返します:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Jun 22 14:36:05 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. docs/zh/docs/how-to/configure-swagger-ui.md

    # 配置 Swagger UI
    
    你可以配置一些额外的 <a href="https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/" class="external-link" target="_blank">Swagger UI 参数</a>.
    
    如果需要配置它们,可以在创建 `FastAPI()` 应用对象时或调用 `get_swagger_ui_html()` 函数时传递 `swagger_ui_parameters` 参数。
    
    `swagger_ui_parameters` 接受一个直接传递给 Swagger UI的字典,包含配置参数键值对。
    
    FastAPI会将这些配置转换为 **JSON**,使其与 JavaScript 兼容,因为这是 Swagger UI 需要的。
    
    ## 不使用语法高亮
    
    比如,你可以禁用 Swagger UI 中的语法高亮。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  3. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Mas em situações reais, como implementações de segurança, você pode obter mais vantagens em usar as [Ferramentas de segurança integradas (o próximo capítulo)](../security/index.md){.internal-link target=_blank}.
    
    ///
    
    ## Erros das dependências e valores de retorno { #dependencies-errors-and-return-values }
    
    Você pode utilizar as mesmas *funções* de dependências que você usaria normalmente.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. architecture/standards/0001-use-architectural-decision-records.md

    aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
    occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    
    ## Decision
    
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Aug 26 17:29:22 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/cors.md

    # CORS(跨域资源共享)
    
    <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS" class="external-link" target="_blank">CORS 或者「跨域资源共享」</a> 指浏览器中运行的前端拥有与后端通信的 JavaScript 代码,而后端处于与前端不同的「源」的情况。
    
    ## 源
    
    源是协议(`http`,`https`)、域(`myapp.com`,`localhost`,`localhost.tiangolo.com`)以及端口(`80`、`443`、`8080`)的组合。
    
    因此,这些都是不同的源:
    
    * `http://localhost`
    * `https://localhost`
    * `http://localhost:8080`
    
    即使它们都在 `localhost` 中,但是它们使用不同的协议或者端口,所以它们都是不同的「源」。
    
    ## 步骤
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/testing-websockets.md

    为此,要在 `with` 语句中使用 `TestClient` 连接 WebSocket。
    
    {* ../../docs_src/app_testing/tutorial002.py hl[27:31] *}
    
    /// note | 笔记
    
    更多细节详见 <a href="https://www.starlette.dev/testclient/#testing-websocket-sessions" class="external-link" target="_blank">Starlette 官档 - 测试 WebSockets</a>。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 398 bytes
    - Click Count (0)
  7. .github/ISSUE_TEMPLATE/04-vuln.yml

          required: true
      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
          label: "What did you see happen?"
        validations:
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  8. api/maven-api-annotations/src/main/java/org/apache/maven/api/annotations/ThreadSafe.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * The {@code ThreadSafe} annotation can be used to indicate a given type
     * is thread safe.  {@link Immutable} objects are automatically thread safe.
     *
     * @see Immutable
     * @see NotThreadSafe
     * @since 4.0.0
     */
    @Experimental
    @Documented
    @Retention(RetentionPolicy.CLASS)
    @Target(ElementType.TYPE)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 10 21:43:27 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/ProblemCollectorFactory.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.building;
    
    import java.util.List;
    
    /**
     *
     * @since 3.3.0
     * @deprecated since 4.0.0, use {@link org.apache.maven.api.services} instead
     */
    @Deprecated(since = "4.0.0")
    public class ProblemCollectorFactory {
    
        /**
         * The default implementation is not visible, create it with this factory
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  10. docs/ru/docs/python-types.md

    /// info | Информация
    
    Чтобы узнать больше о <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, ознакомьтесь с его документацией</a>.
    
    ///
    
    **FastAPI** целиком основан на Pydantic.
    
    Вы увидите намного больше всего этого на практике в [Руководстве пользователя](tutorial/index.md){.internal-link target=_blank}.
    
    /// tip | Совет
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 24.4K bytes
    - Click Count (0)
Back to Top