- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 225 for would (0.01 sec)
-
docs/en/docs/advanced/behind-a-proxy.md
# Behind a Proxy { #behind-a-proxy } In many situations, you would use a **proxy** like Traefik or Nginx in front of your FastAPI app. These proxies could handle HTTPS certificates and other things. ## Proxy Forwarded Headers { #proxy-forwarded-headers }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 16.4K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-webhooks.md
{* ../../docs_src/openapi_webhooks/tutorial001_py39.py hl[9:13,36:53] *} The webhooks that you define will end up in the **OpenAPI** schema and the automatic **docs UI**. /// info The `app.webhooks` object is actually just an `APIRouter`, the same type you would use when structuring your app with multiple files. ///Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.9K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
If it was in a type annotation we could have used the vertical bar, as: ```Python some_variable: PlaneItem | CarItem ``` But if we put that in the assignment `response_model=PlaneItem | CarItem` we would get an error, because Python would try to perform an **invalid operation** between `PlaneItem` and `CarItem` instead of interpreting that as a type annotation.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 6.9K bytes - Viewed (0) -
docs/en/docs/virtual-environments.md
After that, you would need to **install** FastAPI and any other **packages** you want to use. To install packages you would normally use the `pip` command that comes with Python (or similar alternatives). Nevertheless, if you just use `pip` directly, the packages would be installed in your **global Python environment** (the global installation of Python).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 05:09:25 UTC 2025 - 22.8K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
You could load it at the top level of the module/file, but that would also mean that it would **load the model** even if you are just running a simple automated test, then that test would be **slow** because it would have to wait for the model to load before being able to run an independent part of the code.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.9K bytes - Viewed (0) -
fastapi/security/oauth2.py
) class OAuth2(SecurityBase): """ This is the base class for OAuth2 authentication, an instance of it would be used as a dependency. All other OAuth2 classes inherit from it and customize it for each OAuth2 flow. You normally would not create a new class inheriting from it but use one of the existing subclasses, and maybe compose them if you want to support multiple flows.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 22K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
Instead, use the actual default value of the function parameter. Otherwise, it would be inconsistent. For example, this is not allowed: ```Python q: Annotated[str, Query(default="rick")] = "morty" ``` ...because it's not clear if the default value should be `"rick"` or `"morty"`. So, you would use (preferably): ```Python q: Annotated[str, Query()] = "rick" ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 16.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
This way, you don't have to know beforehand what the valid field/attribute names are (as would be the case with Pydantic models). This would be useful if you want to receive keys that you don't already know. --- Another useful case is when you want to have keys of another type (e.g., `int`). That's what we are going to see here. In this case, you would accept any `dict` as long as it has `int` keys with `float` values:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
```Python {"id": id} ``` For example, with an ID of `42`, this would render: ```html Item ID: 42 ``` ### Template `url_for` Arguments { #template-url-for-arguments } You can also use `url_for()` inside of the template, it takes as arguments the same arguments that would be used by your *path operation function*. So, the section with: {% raw %} ```jinjaRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.5K bytes - Viewed (0)