- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 2,056 for app (0.03 sec)
-
docs_src/advanced_middleware/tutorial003.py
from fastapi import FastAPI from fastapi.middleware.gzip import GZipMiddleware app = FastAPI() app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=5) @app.get("/") async def main():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Aug 15 22:38:02 UTC 2024 - 230 bytes - Viewed (0) -
docs_src/behind_a_proxy/tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jun 11 21:53:19 UTC 2020 - 208 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009c.py
from fastapi.testclient import TestClient from docs_src.custom_response.tutorial009c import app client = TestClient(app) def test_get(): response = client.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 01 09:32:30 UTC 2022 - 239 bytes - Viewed (0) -
docs_src/cookie_params/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Cookie, FastAPI app = FastAPI() @app.get("/items/") async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 218 bytes - Viewed (0) -
docs/uk/docs/tutorial/first-steps.md
Це і є "декоратор операції шляху (path operation decorator)". /// Можна також використовувати операції: * `@app.post()` * `@app.put()` * `@app.delete()` І більш екзотичні: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` /// tip | "Порада" Ви можете використовувати кожну операцію (HTTP-метод) на свій розсуд.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.6K bytes - Viewed (0) -
docs_src/security/tutorial001.py
from fastapi import Depends, FastAPI from fastapi.security import OAuth2PasswordBearer app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") @app.get("/items/") async def read_items(token: str = Depends(oauth2_scheme)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 10 17:28:18 UTC 2020 - 269 bytes - Viewed (0) -
docs_src/header_params/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items(user_agent: Annotated[Union[str, None], Header()] = None):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 230 bytes - Viewed (0) -
docs_src/header_params/tutorial003_an_py310.py
from typing import Annotated from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items(x_token: Annotated[list[str] | None, Header()] = None):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 221 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial007.py
from fastapi.testclient import TestClient from docs_src.custom_response.tutorial007 import app client = TestClient(app) def test_get(): fake_content = b"some fake video bytes" response = client.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 264 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial011_py39.py
from typing import Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: Union[list[str], None] = Query(default=None)): query_items = {"q": q}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 221 bytes - Viewed (0)