Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 657 for custosa (0.07 seconds)

  1. docs/pt/docs/advanced/events.md

    Nós criamos uma função assíncrona `lifespan()` com `yield` assim:
    
    {* ../../docs_src/events/tutorial003_py310.py hl[16,19] *}
    
    Aqui estamos simulando a operação de *inicialização* custosa de carregar o modelo, colocando a (falsa) função do modelo no dicionário com modelos de Aprendizado de Máquina antes do `yield`. Esse código será executado **antes** de a aplicação **começar a receber requisições**, durante a *inicialização*.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  2. docs/pt/docs/advanced/settings.md

    ### Criando o `Settings` apenas uma vez com `lru_cache` { #creating-the-settings-only-once-with-lru-cache }
    
    Ler um arquivo do disco normalmente é uma operação custosa (lenta), então você provavelmente vai querer fazer isso apenas uma vez e depois reutilizar o mesmo objeto de configurações, em vez de lê-lo a cada requisição.
    
    Mas toda vez que fizermos:
    
    ```Python
    Settings()
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  3. docs/en/docs/js/custom.js

                            saveBuffer();
                            const promptStart = line.indexOf(promptLiteralStart);
                            if (promptStart === -1) {
                                console.error("Custom prompt found but no end delimiter", line)
                            }
                            const prompt = line.slice(0, promptStart).replace(customPromptLiteralStart, "")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:59:48 GMT 2026
    - 7.7K bytes
    - Click Count (2)
  4. docs/en/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *}
    
    In this case, you can return the file path directly from your *path operation* function.
    
    ## Custom response class { #custom-response-class }
    
    You can create your own custom response class, inheriting from `Response` and using it.
    
    For example, let's say that you want to use [`orjson`](https://github.com/ijl/orjson) with some settings.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  5. docs/fr/docs/advanced/custom-response.md

    # Réponse personnalisée - HTML, flux, fichier, autres { #custom-response-html-stream-file-others }
    
    Par défaut, **FastAPI** renvoie des réponses JSON.
    
    Vous pouvez le remplacer en renvoyant une `Response` directement comme vu dans [Renvoyer une Response directement](response-directly.md).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  6. docs/ko/docs/advanced/custom-response.md

    # 사용자 정의 응답 - HTML, Stream, 파일, 기타 { #custom-response-html-stream-file-others }
    
    기본적으로 **FastAPI**는 JSON 응답을 반환합니다.
    
    [응답을 직접 반환하기](response-directly.md)에서 본 것처럼 `Response`를 직접 반환하여 이를 재정의할 수 있습니다.
    
    그러나 `Response`를 직접 반환하면(또는 `JSONResponse`와 같은 하위 클래스를 반환하면) 데이터가 자동으로 변환되지 않으며(비록 `response_model`을 선언했다 하더라도), 문서도 자동으로 생성되지 않습니다(예를 들어, 생성된 OpenAPI의 일부로 HTTP 헤더 `Content-Type`에 특정 "미디어 타입"을 포함하는 것 등).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  7. docs/tr/docs/advanced/custom-response.md

    # Özel Response - HTML, Stream, File ve Diğerleri { #custom-response-html-stream-file-others }
    
    Varsayılan olarak **FastAPI**, JSON response'lar döndürür.
    
    Bunu, [Doğrudan bir Response döndür](response-directly.md) bölümünde gördüğünüz gibi doğrudan bir `Response` döndürerek geçersiz kılabilirsiniz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/custom-response.md

    # Benutzerdefinierte Response – HTML, Stream, Datei, andere { #custom-response-html-stream-file-others }
    
    Standardmäßig gibt **FastAPI** JSON-Responses zurück.
    
    Sie können dies überschreiben, indem Sie direkt eine `Response` zurückgeben, wie in [Eine Response direkt zurückgeben](response-directly.md) gezeigt.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/custom-response.md

    # Response Personalizado - HTML, Stream, Archivo, otros { #custom-response-html-stream-file-others }
    
    Por defecto, **FastAPI** devolverá responses JSON.
    
    Puedes sobrescribirlo devolviendo un `Response` directamente como se ve en [Devolver una Response directamente](response-directly.md).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  10. docs/en/docs/how-to/custom-request-and-route.md

    * Automatically logging all request bodies.
    
    ## Handling custom request body encodings { #handling-custom-request-body-encodings }
    
    Let's see how to make use of a custom `Request` subclass to decompress gzip requests.
    
    And an `APIRoute` subclass to use that custom request class.
    
    ### Create a custom `GzipRequest` class { #create-a-custom-gziprequest-class }
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.4K bytes
    - Click Count (0)
Back to Top