Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 13 of 13 for generate_html_response (0.16 seconds)

  1. docs/uk/docs/advanced/custom-response.md

    Наприклад, це може бути щось на кшталт:
    
    {* ../../docs_src/custom_response/tutorial004_py310.py hl[7,21,23] *}
    
    У цьому прикладі функція `generate_html_response()` уже генерує та повертає `Response` замість повернення HTML як `str`.
    
    Повертаючи результат виклику `generate_html_response()`, ви вже повертаєте `Response`, яка перепише типову поведінку **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17K bytes
    - Click Count (0)
  2. docs/ja/docs/advanced/custom-response.md

    #### `HTMLResponse` を直接返す { #return-an-htmlresponse-directly }
    
    例えば、次のようになります:
    
    {* ../../docs_src/custom_response/tutorial004_py310.py hl[7,21,23] *}
    
    この例では、関数 `generate_html_response()` はHTMLの `str` を返すのではなく、すでに `Response` を生成して返しています。
    
    `generate_html_response()` の呼び出し結果を返すことで、デフォルトの **FastAPI** の挙動を上書きする `Response` をすでに返しています。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  3. docs/pt/docs/advanced/custom-response.md

    Por exemplo, poderia ser algo como:
    
    {* ../../docs_src/custom_response/tutorial004_py310.py hl[7,21,23] *}
    
    Neste exemplo, a função `generate_html_response()` já cria e retorna uma `Response` em vez de retornar o HTML em uma `str`.
    
    Ao retornar o resultado chamando `generate_html_response()`, você já está retornando uma `Response` que irá sobrescrever o comportamento padrão do **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 12K bytes
    - Click Count (0)
Back to Top