- Sort Score
- Result 10 results
- Languages All
Results 431 - 440 of 580 for url_lines (0.05 sec)
-
docs/tr/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # burgerleri oluşturmak için asenkron birkaç iş return burgers ``` ...`def` yerine: ```Python hl_lines="2" # bu kod asenkron değil def get_sequential_burgers(number: int): # burgerleri oluşturmak için senkron bırkaç iş
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 21.9K bytes - Viewed (0) -
docs/pt/docs/advanced/testing-events.md
Quando você precisa que os seus manipuladores de eventos (`startup` e `shutdown`) sejam executados em seus testes, você pode utilizar o `TestClient` usando a instrução `with`: ```Python hl_lines="9-12 20-24" {!../../docs_src/app_testing/tutorial003.py!}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 316 bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response: ```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "Technical Details" You could also use `from starlette.responses import JSONResponse`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
* Then it returns the `response` generated by the corresponding *path operation*. * You can then further modify the `response` before returning it. ```Python hl_lines="8-9 11 14" {!../../docs_src/middleware/tutorial001.py!} ``` /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/tr/docs/advanced/wsgi.md
## `WSGIMiddleware` Kullanımı `WSGIMiddleware`'ı projenize dahil edin. Ardından WSGI (örneğin Flask) uygulamanızı middleware ile sarmalayın. Son olarak da bir yol altında bağlama işlemini gerçekleştirin. ```Python hl_lines="2-3 23" {!../../docs_src/wsgi/tutorial001.py!} ``` ## Kontrol Edelim Artık `/v1/` yolunun altındaki her istek Flask uygulaması tarafından işlenecektir. Geri kalanı ise **FastAPI** tarafından işlenecektir.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Because this file is in the same package, you can use relative imports to import the object `app` from the `main` module (`main.py`): ```Python hl_lines="3" {!../../docs_src/app_testing/test_main.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.5K bytes - Viewed (0) -
docs/en/docs/advanced/wsgi.md
## Using `WSGIMiddleware` You need to import `WSGIMiddleware`. Then wrap the WSGI (e.g. Flask) app with the middleware. And then mount that under a path. ```Python hl_lines="2-3 23" {!../../docs_src/wsgi/tutorial001.py!} ``` ## Check it Now, every request under the path `/v1/` will be handled by the Flask application. And the rest will be handled by **FastAPI**.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies and headers). And then you can set the `status_code` in that *temporal* response object. ```Python hl_lines="1 9 12" {!../../docs_src/response_change_status_code/tutorial001.py!} ``` And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
docs/tr/docs/tutorial/static-files.md
`StaticFiles`'ı kullanarak statik dosyaları bir yol altında sunabilirsiniz. ## `StaticFiles` Kullanımı * `StaticFiles` sınıfını projenize dahil edin. * Bir `StaticFiles()` örneğini belirli bir yola bağlayın. ```Python hl_lines="2 6" {!../../docs_src/static_files/tutorial001.py!} ``` /// note | "Teknik Detaylar" Projenize dahil etmek için `from starlette.staticfiles import StaticFiles` kullanabilirsiniz.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/zh/docs/advanced/wsgi.md
为此, 您可以使用 `WSGIMiddleware` 来包装你的 WSGI 应用,如:Flask,Django,等等。 ## 使用 `WSGIMiddleware` 您需要导入 `WSGIMiddleware`。 然后使用该中间件包装 WSGI 应用(例如 Flask)。 之后将其挂载到某一个路径下。 ```Python hl_lines="2-3 22" {!../../docs_src/wsgi/tutorial001.py!} ``` ## 检查 现在,所有定义在 `/v1/` 路径下的请求将会被 Flask 应用处理。 其余的请求则会被 **FastAPI** 处理。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.2K bytes - Viewed (0)