Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 870 for lain (0.05 seconds)

  1. docs/ko/docs/fastapi-cli.md

    이 `entrypoint`는 `fastapi` 명령어에 다음과 같이 앱을 임포트하라고 알려줍니다:
    
    ```python
    from main import app
    ```
    
    코드 구조가 다음과 같다면:
    
    ```
    .
    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    `entrypoint`를 다음과 같이 설정합니다:
    
    ```toml
    [tool.fastapi]
    entrypoint = "backend.main:app"
    ```
    
    이는 다음과 동일합니다:
    
    ```python
    from backend.main import app
    ```
    
    ### 경로와 함께 `fastapi dev` { #fastapi-dev-with-path }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertFailsWith<IllegalArgumentException> {
          Request.Builder().method("GET", "abc".toRequestBody("text/plain".toMediaType()))
        }
      }
    
      @Test
      fun head() {
        server.enqueue(
          MockResponse(
            headers = headersOf("Content-Type", "text/plain"),
          ),
        )
        val request =
          Request
            .Builder()
            .url(server.url("/"))
            .head()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  3. ci/official/containers/ml_build/setup.sources.sh

    # More Python versions: Deadsnakes
    deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main
    deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main
    
    # LLVM/Clang repository
    deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main
    deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 03 21:13:05 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  4. docs/tr/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    `main.py` dosyası şöyle olur:
    
    {* ../../docs_src/async_tests/app_a_py310/main.py *}
    
    `test_main.py` dosyasında `main.py` için testler yer alır, artık şöyle görünebilir:
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py *}
    
    ## Çalıştırma { #run-it }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  5. docs/uk/docs/tutorial/first-steps.md

    ```python
    from main import app
    ```
    
    Якщо структура вашого коду виглядала б так:
    
    ```
    .
    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    Тоді ви б задали `entrypoint` як:
    
    ```toml
    [tool.fastapi]
    entrypoint = "backend.main:app"
    ```
    
    що було б еквівалентно:
    
    ```python
    from backend.main import app
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
          """
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: abc
          |
          |abcd
          |efgh
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: ijk
          |
          |ijkl
          |mnop
          |
          |--simple boundary--
          """.trimMargin()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 02:11:14 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  7. docs/pt/docs/environment-variables.md

    <div class="termy">
    
    ```console
    // Aqui ainda não definimos a variável de ambiente
    $ python main.py
    
    // Como não definimos a variável de ambiente, obtemos o valor padrão
    
    Hello World from Python
    
    // Mas se criarmos uma variável de ambiente primeiro
    $ export MY_NAME="Wade Wilson"
    
    // E então chamar o programa novamente
    $ python main.py
    
    // Agora ele pode ler a variável de ambiente
    
    Hello Wade Wilson from Python
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  8. docs/tr/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note | Not
    
    `uvicorn main:app` komutu şunları ifade eder:
    
    * `main`: `main.py` dosyası (Python "module").
    * `app`: `main.py` içinde `app = FastAPI()` satırıyla oluşturulan nesne.
    
    Şununla eşdeğerdir:
    
    ```Python
    from main import app
    ```
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  9. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.curl.Main
    import okhttp3.internal.http.StatusLine
    import okio.sink
    
    internal fun Main.commonCreateRequest(): Request {
      val request = Request.Builder()
    
      val requestMethod = method ?: if (data != null) "POST" else "GET"
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        val contentType = "text/plain".toMediaType()
        val body = "\u0800".toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo("text/plain; charset=utf-8".toMediaType())
        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("e0a080")
      }
    
      @Test
      fun stringWithNonDefaultCharsetSpecified() {
        val contentType = "text/plain; charset=utf-16be".toMediaType()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
Back to Top