Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for spooled (0.04 sec)

  1. docs/pt/docs/tutorial/request-files.md

    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[14] *}
    
    Utilizar `UploadFile` tem várias vantagens sobre `bytes`:
    
    * Você não precisa utilizar o `File()` no valor padrão do parâmetro.
    * Ele utiliza um arquivo "spooled":
        * Um arquivo armazenado na memória até um limite máximo de tamanho, e após passar esse limite, ele será armazenado no disco.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 19:52:32 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-files.md

    {!> ../../docs_src/request_files/tutorial001.py!}
    ```
    
    ////
    
    Using `UploadFile` has several advantages over `bytes`:
    
    * You don't have to use `File()` in the default value of the parameter.
    * It uses a "spooled" file:
        * A file stored in memory up to a maximum size limit, and after passing this limit it will be stored in disk.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-files.md

    不过,很多情况下,`UploadFile` 更好用。
    
    ## 含 `UploadFile` 的文件参数
    
    定义文件参数时使用 `UploadFile`:
    
    ```Python hl_lines="12"
    {!../../docs_src/request_files/tutorial001.py!}
    ```
    
    `UploadFile` 与 `bytes` 相比有更多优势:
    
    * 使用 `spooled` 文件:
        * 存储在内存的文件超出最大上限时,FastAPI 会把文件存入磁盘;
    * 这种方式更适于处理图像、视频、二进制文件等大型文件,好处是不会占用所有内存;
    * 可获取上传文件的元数据;
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

      /**
       * Returns a fluent iterable that combines two iterables. The returned iterable has an iterator
       * that traverses the elements in {@code a}, followed by the elements in {@code b}. The source
       * iterators are not polled until necessary.
       *
       * <p>The returned iterable's iterator supports {@code remove()} when the corresponding input
       * iterator supports it.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#concat}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/query-param-models.md

                "input": "plumbus"
            }
        ]
    }
    ```
    
    ## Summary
    
    You can use **Pydantic models** to declare **query parameters** in **FastAPI**. 😎
    
    /// tip
    
    Spoiler alert: you can also use Pydantic models to declare cookies and headers, but you will read about that later in the tutorial. 🤫
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/query-param-models.md

            }
        ]
    }
    ```
    
    ## Resumo
    
    Você pode utilizar **modelos Pydantic** para declarar **parâmetros de consulta** no **FastAPI**. 😎
    
    /// tip | Dica
    
    Alerta de spoiler: você também pode utilizar modelos Pydantic para declarar cookies e cabeçalhos, mas você irá ler sobre isso mais a frente no tutorial. 🤫
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 15 09:53:14 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. cni/pkg/plugin/cnieventclient_test.go

    	testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
    		res.WriteHeader(http.StatusInternalServerError)
    		res.Write([]byte("server pooped itself"))
    	}))
    	defer func() { testServer.Close() }()
    
    	cniC := fakeCNIEventClient(testServer.URL)
    
    	err := PushCNIEvent(cniC, fakeCmdArgs, []*cniv1.IPConfig{&fakePrevResultIPConfig}, "testpod", "testns")
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

        };
      }
    
      /**
       * Combines two iterators into a single iterator. The returned iterator iterates across the
       * elements in {@code a}, followed by the elements in {@code b}. The source iterators are not
       * polled until necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       */
      public static <T extends @Nullable Object> Iterator<T> concat(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  9. architecture/ambient/ztunnel-cni-lifecycle.md

    Finally, we SHOULD tell our (HBONE) peers we are shutting down.
    This can help ensure that clients do not hold onto pooled connections for too long.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 17 23:10:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. docs/uk/docs/index.md

    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Для більш повного ознайомлення з додатковими функціями, перегляньте <a href="https://fastapi.tiangolo.com/tutorial/">Туторіал - Посібник Користувача</a>.
    
    **Spoiler alert**: туторіал - посібник користувача містить:
    
    * Оголошення **параметрів** з інших місць як: **headers**, **cookies**, **form fields** та **files**.
    * Як встановити **перевірку обмежень** як `maximum_length` або `regex`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top