Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 169 for option (0.16 sec)

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

    Sie möchten etwa, dass Ihre Response eingerücktes und formatiertes JSON zurückgibt. Dafür möchten Sie die orjson-Option `orjson.OPT_INDENT_2` verwenden.
    
    Sie könnten eine `CustomORJSONResponse` erstellen. Das Wichtigste, was Sie tun müssen, ist, eine `Response.render(content)`-Methode zu erstellen, die den Inhalt als `bytes` zurückgibt:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:05:12 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/first-steps.md

    * `GET`
    * `PUT`
    * `DELETE`
    
    ...ou une des plus exotiques :
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    Dans le protocol HTTP, vous pouvez communiquer avec chaque chemin en utilisant une (ou plus) de ces "méthodes".
    
    ---
    
    En construisant des APIs, vous utilisez généralement ces méthodes HTTP spécifiques pour effectuer une action précise.
    
    Généralement vous utilisez :
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 20:52:31 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  3. docs/de/docs/deployment/docker.md

    4. Installiere die Paketabhängigkeiten aus der Anforderungsdatei.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  4. docs/fr/docs/alternatives.md

    fonctionnalités couvertes par **FastAPI** en utilisant de nombreux frameworks, plug-ins et outils différents.
    
    Mais à un moment donné il n'y avait pas d'autre option que de créer quelque chose qui offrait toutes ces
    fonctionnalités, en reprenant et en combinant de la meilleure façon possible les meilleures idées des outils
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/custom-response.md

    Let's say you want it to return indented and formatted JSON, so you want to use the orjson option `orjson.OPT_INDENT_2`.
    
    You could create a `CustomORJSONResponse`. The main thing you have to do is create a `Response.render(content)` method that returns the content as `bytes`:
    
    ```Python hl_lines="9-14  17"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/custom-docs-ui-assets.md

    │   ├── main.py
    └── static/
    ```
    
    ### Download the files
    
    Download the static files needed for the docs and put them on that `static/` directory.
    
    You can probably right-click each link and select an option similar to `Save link as...`.
    
    **Swagger UI** uses the files:
    
    * <a href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js" class="external-link" target="_blank">`swagger-ui-bundle.js`</a>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. .github/actions/comment-docs-preview-in-pr/action.yml

    Sebastián Ramírez <******@****.***> 1603648476 +0100
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Oct 25 17:54:36 GMT 2020
    - 394 bytes
    - Viewed (0)
  8. docs/en/docs/async.md

    ---
    
    If you just don't know, use normal `def`.
    
    ---
    
    **Note**: You can mix `def` and `async def` in your *path operation functions* as much as you need and define each one using the best option for you. FastAPI will do the right thing with them.
    
    Anyway, in any of the cases above, FastAPI will still work asynchronously and be extremely fast.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. tests/test_security_http_bearer_optional.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBearer(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(
        credentials: Optional[HTTPAuthorizationCredentials] = Security(security),
    ):
        if credentials is None:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  10. tests/test_security_oauth2_password_bearer_optional_description.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import OAuth2PasswordBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="/token",
        description="OAuth2PasswordBearer security scheme",
        auto_error=False,
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        if token is None:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.2K bytes
    - Viewed (0)
Back to top