Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for demais (0.15 sec)

  1. docs/en/docs/advanced/middleware.md

    ```Python hl_lines="2  6-8"
    {!../../../docs_src/advanced_middleware/tutorial002.py!}
    ```
    
    The following arguments are supported:
    
    * `allowed_hosts` - A list of domain names that should be allowed as hostnames. Wildcard domains such as `*.example.com` are supported for matching subdomains. To allow any hostname either use `allowed_hosts=["*"]` or omit the middleware.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/static-files.md

    The `name="static"` gives it a name that can be used internally by **FastAPI**.
    
    All these parameters can be different than "`static`", adjust them with the needs and specific details of your own application.
    
    ## More info
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 19:56:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/manually.md

    </div>
    
    That would work for most of the cases. ๐Ÿ˜Ž
    
    You could use that command for example to start your **FastAPI** app in a container, in a server, etc.
    
    ## ASGI Servers
    
    Let's go a little deeper into the details.
    
    FastAPI uses a standard for building Python web frameworks and servers called <abbr title="Asynchronous Server Gateway Interface">ASGI</abbr>. FastAPI is an ASGI web framework.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/metadata.md

    | `license_info` | `dict` | ๐Ÿ›‚ โ„น ๐ŸŽฆ ๐Ÿ› ๏ธ. โšซ๏ธ ๐Ÿ’ช ๐Ÿ”Œ ๐Ÿ“š ๐Ÿ‘. <details><summary><code>license_info</code> ๐Ÿ‘</summary><table><thead><tr><th>๐Ÿ”ข</th><th>๐Ÿ†Ž</th><th>๐Ÿ“›</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>str</code></td><td><strong>๐Ÿšš</strong> (๐Ÿšฅ <code>license_info</code> โš’). ๐Ÿ›‚ ๐Ÿ“› โš™๏ธ ๐Ÿ› ๏ธ.</td></tr><tr><td><code>url</code></td><td><code>str</code></td><td>๐Ÿ“› ๐Ÿ›‚ โš™๏ธ ๐Ÿ› ๏ธ. ๐Ÿ”œ ๐Ÿ“ ๐Ÿ“›. </td></tr></tbody></table></details> |
    
    ๐Ÿ‘† ๐Ÿ’ช โš’ ๐Ÿ‘ซ โฉ:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/middleware.md

    * It then takes the **response** generated by the application (by some *path operation*).
    * It can do something to that **response** or run any needed code.
    * Then it returns the **response**.
    
    !!! note "Technical Details"
        If you have dependencies with `yield`, the exit code will run *after* the middleware.
    
        If there were any background tasks (documented later), they will run *after* all the middleware.
    
    ## Create a middleware
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/middleware.md

    * Sie kann etwas mit dieser **Response** tun oder beliebigen Code ausfรผhren.
    * Dann gibt sie die **Response** zurรผck.
    
    !!! note "Technische Details"
        Wenn Sie Abhรคngigkeiten mit `yield` haben, wird der Exit-Code *nach* der Middleware ausgefรผhrt.
    
        Wenn es Hintergrundaufgaben gab (spรคter dokumentiert), werden sie *nach* allen Middlewares ausgefรผhrt.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 11:26:59 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/handling-errors.md

    }
    
    ```
    
    ไฝ†ๅฆ‚ๆžœๅฎขๆˆท็ซฏ่ฏทๆฑ‚ `http://example.com/items/bar`๏ผˆ`item_id` `ใ€Œbarใ€` ไธๅญ˜ๅœจๆ—ถ๏ผ‰๏ผŒๅˆ™ไผšๆŽฅๆ”ถๅˆฐ HTTP ็Šถๆ€็  - 404๏ผˆใ€Œๆœชๆ‰พๅˆฐใ€้”™่ฏฏ๏ผ‰ๅŠๅฆ‚ไธ‹ JSON ๅ“ๅบ”็ป“ๆžœ๏ผš
    
    ```JSON
    {
      "detail": "Item not found"
    }
    
    ```
    
    !!! tip "ๆ็คบ"
    
        ่งฆๅ‘ `HTTPException` ๆ—ถ๏ผŒๅฏไปฅ็”จๅ‚ๆ•ฐ `detail` ไผ ้€’ไปปไฝ•่ƒฝ่ฝฌๆขไธบ JSON ็š„ๅ€ผ๏ผŒไธไป…้™ไบŽ `str`ใ€‚
    
        ่ฟ˜ๆ”ฏๆŒไผ ้€’ `dict`ใ€`list` ็ญ‰ๆ•ฐๆฎ็ป“ๆž„ใ€‚
    
        **FastAPI** ่ƒฝ่‡ชๅŠจๅค„็†่ฟ™ไบ›ๆ•ฐๆฎ๏ผŒๅนถๅฐ†ไน‹่ฝฌๆขไธบ JSONใ€‚
    
    
    ## ๆทปๅŠ ่‡ชๅฎšไน‰ๅ“ๅบ”ๅคด
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/testing-websockets.md

    For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket:
    
    ```Python hl_lines="27-31"
    {!../../../docs_src/app_testing/tutorial002.py!}
    ```
    
    !!! note
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 449 bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/handling-errors.md

    ```
    
    โœ‹๏ธ ๐Ÿšฅ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ“จ `http://example.com/items/bar` (๐Ÿšซ-๐Ÿšซ `item_id` `"bar"`), ๐Ÿ‘ˆ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ”œ ๐Ÿ“จ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘” ๐Ÿ“Ÿ 4๏ธโƒฃ0๏ธโƒฃ4๏ธโƒฃ ("๐Ÿšซ ๐Ÿ”Ž" โŒ), &amp; ๐ŸŽป ๐Ÿ“จ:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    !!! tip
        ๐Ÿ•โ” ๐Ÿ™‹โ€โ™€ `HTTPException`, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšถโ€โ™€๏ธ ๐Ÿ™† ๐Ÿ’ฒ ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿ—œ ๐ŸŽป ๐Ÿ”ข `detail`, ๐Ÿšซ ๐Ÿ•ด `str`.
    
        ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšถโ€โ™€๏ธ `dict`, `list`, โ™’๏ธ.
    
        ๐Ÿ‘ซ ๐Ÿต ๐Ÿ” **FastAPI** &amp; ๐Ÿ—œ ๐ŸŽป.
    
    ## ๐Ÿšฎ ๐Ÿ›ƒ ๐ŸŽš
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/testing.md

        And the calls to the client are also normal calls, not using `await`.
    
        This allows you to use `pytest` directly without complications.
    
    !!! note "Technical Details"
        You could also use `from starlette.testclient import TestClient`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top