Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 127 for http_url (0.07 sec)

  1. docs/ru/docs/tutorial/body-nested-models.md

    Например, так как в модели `Image` у нас есть поле `url`, то мы можем объявить его как тип `HttpUrl` из модуля Pydantic вместо типа `str`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="2  8"
    {!> ../../docs_src/body_nested_models/tutorial005_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/body-nested-models.md

    모든 옵션을 보려면, <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic's exotic types</a> 문서를 확인하세요. 다음 장에서 몇가지 예제를 볼 수 있습니다.
    
    예를 들어 `Image` 모델 안에 `url` 필드를 `str` 대신 Pydantic의 `HttpUrl`로 선언할 수 있습니다:
    
    ```Python hl_lines="4  10"
    {!../../docs_src/body_nested_models/tutorial005.py!}
    ```
    
    이 문자열이 유효한 URL인지 검사하고 JSON 스키마/OpenAPI로 문서화 됩니다.
    
    ## 서브모델 리스트를 갖는 어트리뷰트
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-nested-models.md

    For example, as in the `Image` model we have a `url` field, we can declare it to be an instance of Pydantic's `HttpUrl` instead of a `str`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="2  8"
    {!> ../../docs_src/body_nested_models/tutorial005_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. CHANGELOG.md

        `DurationUnit` which was a typealias in 1.5.x.
     *  Upgrade: [Okio 3.2.0][okio_3_2_0].
    
    
    ## Version 5.0.0-alpha.9
    
    _2022-06-16_
    
     *  New: Enforce label length limits in URLs. `HttpUrl` now rejects URLs whose domains aren't valid.
        This includes overly-long domain names (longer than 253 characters), overly-long labels (more
        than 63 characters between dots), and empty labels.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

    import assertk.assertions.isTrue
    import java.io.File
    import java.io.FileWriter
    import java.net.URI
    import java.util.UUID
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.asRequestBody
    import okhttp3.RequestBody.Companion.toRequestBody
    import okio.Buffer
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/body-nested-models.md

    要了解所有的可用选项,请查看关于 <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">来自 Pydantic 的外部类型</a> 的文档。你将在下一章节中看到一些示例。
    
    例如,在 `Image` 模型中我们有一个 `url` 字段,我们可以把它声明为 Pydantic 的 `HttpUrl`,而不是 `str`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="2  8"
    {!> ../../docs_src/body_nested_models/tutorial005_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

    import assertk.assertions.isSameAs
    import assertk.assertions.matches
    import java.net.UnknownHostException
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.HttpUrl
    import okhttp3.Interceptor
    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.RecordingHostnameVerifier
    import okhttp3.Request
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import mockwebserver3.SocketPolicy.ShutdownOutputAtEnd
    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.Credentials.basic
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.TestUtil.assertSuppressed
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/body-nested-models.md

    すべてのオプションをみるには、<a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydanticのエキゾチック な型</a>のドキュメントを確認してください。次の章でいくつかの例をみることができます。
    
    例えば、`Image`モデルのように`url`フィールドがある場合、`str`の代わりにPydanticの`HttpUrl`を指定することができます:
    
    ```Python hl_lines="4 10"
    {!../../docs_src/body_nested_models/tutorial005.py!}
    ```
    
    文字列は有効なURLであることが確認され、そのようにJSONスキーマ・OpenAPIで文書化されます。
    
    ## サブモデルのリストを持つ属性
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

    import mockwebserver3.SocketPolicy.DisconnectDuringRequestBody
    import mockwebserver3.SocketPolicy.DisconnectDuringResponseBody
    import mockwebserver3.SocketPolicy.ShutdownServerAfterResponse
    import okhttp3.Headers
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.RecordingHostnameVerifier
    import okhttp3.Request
    import okhttp3.TestUtil.assumeNotWindows
    import okhttp3.testing.PlatformRule
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top