Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 463 for _settings (0.17 sec)

  1. docs/en/docs/advanced/settings.md

    #### `lru_cache` Technical Details
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/settings.md

        ```Python hl_lines="1  10"
        {!> ../../../docs_src/settings/app03/main.py!}
        ```
    
    Dann wird bei allen nachfolgenden Aufrufen von `get_settings()`, in den Abhängigkeiten für darauffolgende Requests, dasselbe Objekt zurückgegeben, das beim ersten Aufruf zurückgegeben wurde, anstatt den Code von `get_settings()` erneut auszuführen und ein neues `Settings`-Objekt zu erstellen.
    
    #### Technische Details zu `lru_cache`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/settings.md

    {!../../../docs_src/settings/app02/main.py!}
    ```
    
    !!! tip
        👥 🔜 🔬 `@lru_cache` 🍖.
    
        🔜 👆 💪 🤔 `get_settings()` 😐 🔢.
    
    & ⤴️ 👥 💪 🚚 ⚫️ ⚪️➡️ *➡ 🛠️ 🔢* 🔗 & ⚙️ ⚫️ 🙆 👥 💪 ⚫️.
    
    ```Python hl_lines="16  18-20"
    {!../../../docs_src/settings/app02/main.py!}
    ```
    
    ### ⚒ & 🔬
    
    ⤴️ ⚫️ 🔜 📶 ⏩ 🚚 🎏 ⚒ 🎚 ⏮️ 🔬 🏗 🔗 🔐 `get_settings`:
    
    ```Python hl_lines="9-10  13  21"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/settings.md

        ```Python hl_lines="1  11"
        {!> ../../../docs_src/settings/app03_an/main.py!}
        ```
    
    === "Python 3.8+ 非注解版本"
    
        !!! tip
            如果可能,请尽量使用 `Annotated` 版本。
    
        ```Python hl_lines="1  10"
        {!> ../../../docs_src/settings/app03/main.py!}
        ```
    
    然后,在下一次请求的依赖项中对 `get_settings()` 进行任何后续调用时,它不会执行 `get_settings()` 的内部代码并创建新的 `Settings` 对象,而是返回在第一次调用时返回的相同对象,一次又一次。
    
    #### `lru_cache` 技术细节
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

        assertThat(frameLog(false, 3, 100, TYPE_HEADERS, FLAG_END_HEADERS))
          .isEqualTo(">> 0x00000003   100 HEADERS       END_HEADERS")
        assertThat(frameLog(false, 3, 0, TYPE_DATA, FLAG_END_STREAM))
          .isEqualTo(">> 0x00000003     0 DATA          END_STREAM")
        assertThat(frameLog(true, 0, 15, TYPE_SETTINGS, FLAG_NONE))
          .isEqualTo("<< 0x00000000    15 SETTINGS      ")
        assertThat(frameLog(false, 0, 0, TYPE_SETTINGS, FLAG_ACK))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        writeMedium(frame, 12) // 2 settings * 6 bytes (2 for the code and 4 for the value).
        frame.writeByte(Http2.TYPE_SETTINGS)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0) // Settings are always on the connection stream 0.
        frame.writeShort(1) // SETTINGS_HEADER_TABLE_SIZE
        frame.writeInt(reducedTableSizeBytes)
        frame.writeShort(2) // SETTINGS_ENABLE_PUSH
        frame.writeInt(0)
        reader.nextFrame(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        @JvmField var data: ByteArray? = null
    
        @JvmField var settings: Settings? = null
    
        @JvmField var ack = false
    
        @JvmField var payload1 = 0
    
        @JvmField var payload2 = 0
    
        override fun settings(
          clearPrevious: Boolean,
          settings: Settings,
        ) {
          check(type == -1)
          this.type = Http2.TYPE_SETTINGS
          this.clearPrevious = clearPrevious
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      ) {
        if (streamId != 0) throw IOException("TYPE_SETTINGS streamId != 0")
        if (flags and FLAG_ACK != 0) {
          if (length != 0) throw IOException("FRAME_SIZE_ERROR ack frame should be empty!")
          handler.ackSettings()
          return
        }
    
        if (length % 6 != 0) throw IOException("TYPE_SETTINGS length % 6 != 0: $length")
        val settings = Settings()
        for (i in 0 until length step 6) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. .github/actions/comment-docs-preview-in-pr/app/main.py

    from typing import Union
    
    import httpx
    from github import Github
    from github.PullRequest import PullRequest
    from pydantic import BaseModel, SecretStr, ValidationError
    from pydantic_settings import BaseSettings
    
    github_api = "https://api.github.com"
    
    
    class Settings(BaseSettings):
        github_repository: str
        github_event_path: Path
        github_event_name: Union[str, None] = None
        input_token: SecretStr
        input_deploy_url: str
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

      const val TYPE_PRIORITY = 0x2
      const val TYPE_RST_STREAM = 0x3
      const val TYPE_SETTINGS = 0x4
      const val TYPE_PUSH_PROMISE = 0x5
      const val TYPE_PING = 0x6
      const val TYPE_GOAWAY = 0x7
      const val TYPE_WINDOW_UPDATE = 0x8
      const val TYPE_CONTINUATION = 0x9
    
      const val FLAG_NONE = 0x0
      const val FLAG_ACK = 0x1 // Used for settings and ping.
      const val FLAG_END_STREAM = 0x1 // Used for headers and data.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
Back to top