Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 357 for response (0.08 sec)

  1. docs/em/docs/advanced/response-headers.md

    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ `Response` ๐Ÿ”ข ๐Ÿ”—, & โš’ ๐ŸŽš (& ๐Ÿช) ๐Ÿ‘ซ.
    
    ## ๐Ÿ“จ `Response` ๐Ÿ”—
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšฎ ๐ŸŽš ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ“จ `Response` ๐Ÿ”—.
    
    โœ ๐Ÿ“จ ๐Ÿ”ฌ [๐Ÿ“จ ๐Ÿ“จ ๐Ÿ”—](response-directly.md){.internal-link target=_blank} & ๐Ÿšถโ€โ™€๏ธ ๐ŸŽš ๐ŸŒ– ๐Ÿ”ข:
    
    ```Python hl_lines="10-12"
    {!../../docs_src/response_headers/tutorial001.py!}
    ```
    
    /// note | "๐Ÿ“ก โ„น"
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `from starlette.responses import Response` โš–๏ธ `from starlette.responses import JSONResponse`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/response-headers.md

    ไฝ ไนŸๅฏไปฅๅœจ็›ดๆŽฅ่ฟ”ๅ›ž`Response`ๆ—ถๆทปๅŠ ๅคด้ƒจใ€‚
    
    ๆŒ‰็…ง[็›ดๆŽฅ่ฟ”ๅ›žๅ“ๅบ”](response-directly.md){.internal-link target=_blank}ไธญๆ‰€่ฟฐๅˆ›ๅปบๅ“ๅบ”๏ผŒๅนถๅฐ†ๅคด้ƒจไฝœไธบ้™„ๅŠ ๅ‚ๆ•ฐไผ ้€’๏ผš
    ```Python hl_lines="10-12"
    {!../../docs_src/response_headers/tutorial001.py!}
    ```
    
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ไฝ ไนŸๅฏไปฅไฝฟ็”จ`from starlette.responses import Response`ๆˆ–`from starlette.responses import JSONResponse`ใ€‚
    
    **FastAPI**ๆไพ›ไบ†ไธŽ`fastapi.responses`็›ธๅŒ็š„`starlette.responses`๏ผŒๅชๆ˜ฏไธบไบ†ๆ–นไพฟๅผ€ๅ‘่€…ใ€‚ไฝ†ๆ˜ฏ๏ผŒๅคงๅคšๆ•ฐๅฏ็”จ็š„ๅ“ๅบ”้ƒฝ็›ดๆŽฅๆฅ่‡ชStarletteใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/response-headers.md

    Crea un response tal como se describe en [Retornar una respuesta directamente](response-directly.md){.internal-link target=_blank} y pasa los headers como un parรกmetro adicional:
    
    ```Python hl_lines="10-12"
    {!../../docs_src/response_headers/tutorial001.py!}
    ```
    
    /// note | Detalles Tรฉcnicos
    
    Tambiรฉn podrรญas utilizar `from starlette.responses import Response` o `from starlette.responses import JSONResponse`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/response-directly.md

    But you can return a `JSONResponse` directly from your *path operations*.
    
    It might be useful, for example, to return custom headers or cookies.
    
    ## Return a `Response`
    
    In fact, you can return any `Response` or any sub-class of it.
    
    /// tip
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    And when you return a `Response`, **FastAPI** will pass it directly.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/response-headers.md

    Erstellen Sie eine Response wie in [Eine Response direkt zurรผckgeben](response-directly.md){.internal-link target=_blank} beschrieben und รผbergeben Sie die Header als zusรคtzlichen Parameter:
    
    ```Python hl_lines="10-12"
    {!../../docs_src/response_headers/tutorial001.py!}
    ```
    
    /// note | "Technische Details"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/response-headers.md

    ```Python hl_lines="10-12"
    {!../../docs_src/response_headers/tutorial001.py!}
    ```
    
    /// note | "Technical Details"
    
    You could also use `from starlette.responses import Response` or `from starlette.responses import JSONResponse`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/response-cookies.md

    ### ๆ›ดๅคšไฟกๆฏ
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ไฝ ไนŸๅฏไปฅไฝฟ็”จ`from starlette.responses import Response` ๆˆ–่€… `from starlette.responses import JSONResponse`ใ€‚
    
    ไธบไบ†ๆ–นไพฟๅผ€ๅ‘่€…๏ผŒ**FastAPI** ๅฐ่ฃ…ไบ†็›ธๅŒๆ•ฐๆฎ็ฑปๅž‹๏ผŒๅฆ‚`starlette.responses` ๅ’Œ `fastapi.responses`ใ€‚ไธ่ฟ‡ๅคง้ƒจๅˆ†responseๅฏน่ฑก้ƒฝๆ˜ฏ็›ดๆŽฅๅผ•็”จ่‡ชStarletteใ€‚
    
    ๅ› ไธบ`Response`ๅฏน่ฑกๅฏไปฅ้žๅธธไพฟๆท็š„่ฎพ็ฝฎheadersๅ’Œcookies๏ผŒๆ‰€ไปฅ **FastAPI** ๅŒๆ—ถไนŸๅฐ่ฃ…ไบ†`fastapi.Response`ใ€‚
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/custom-response.md

    ๐Ÿ”ข, **FastAPI** ๐Ÿ”œ ๐Ÿ“จ ๐Ÿ“จ โš™๏ธ `JSONResponse`.
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ” โšซ๏ธ ๐Ÿ›ฌ `Response` ๐Ÿ”— ๐Ÿ‘€ [๐Ÿ“จ ๐Ÿ“จ ๐Ÿ”—](response-directly.md){.internal-link target=_blank}.
    
    โœ‹๏ธ ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ“จ `Response` ๐Ÿ”—, ๐Ÿ“Š ๐Ÿ† ๐Ÿšซ ๐Ÿ” ๐Ÿ—œ, & ๐Ÿงพ ๐Ÿ† ๐Ÿšซ ๐Ÿ” ๐Ÿ— (๐Ÿ–ผ, ๐Ÿ”Œ ๐ŸŽฏ "๐Ÿ“ป ๐Ÿ†Ž", ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐ŸŽš `Content-Type` ๐Ÿ• ๐Ÿ— ๐Ÿ—„).
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ `Response` ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’š โš™๏ธ, *โžก ๐Ÿ› ๏ธ ๐Ÿ‘จโ€๐ŸŽจ*.
    
    ๐ŸŽš ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ“จ โšช๏ธโžก๏ธ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* ๐Ÿ”œ ๐Ÿšฎ ๐Ÿ”˜ ๐Ÿ‘ˆ `Response`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. cmd/api-response.go

    	w.WriteHeader(statusCode)
    	if response != nil {
    		w.Write(response)
    	}
    }
    
    // mimeType represents various MIME type used API responses.
    type mimeType string
    
    const (
    	// Means no response type.
    	mimeNone mimeType = ""
    	// Means response type is JSON.
    	mimeJSON mimeType = "application/json"
    	// Means response type is XML.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/response-cookies.md

    ### ๐ŸŒ… โ„น
    
    /// note | "๐Ÿ“ก โ„น"
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `from starlette.responses import Response` โš–๏ธ `from starlette.responses import JSONResponse`.
    
    **FastAPI** ๐Ÿšš ๐ŸŽ `starlette.responses` `fastapi.responses` ๐Ÿช ๐Ÿ‘†, ๐Ÿ‘ฉโ€๐Ÿ’ป. โœ‹๏ธ ๐ŸŒ… ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ‘Ÿ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ’ƒ.
    
     & `Response` ๐Ÿ’ช โš™๏ธ ๐Ÿ›Ž โš’ ๐ŸŽš & ๐Ÿช, **FastAPI** ๐Ÿšš โšซ๏ธ `fastapi.Response`.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top