- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 1,131 for defs (0.04 seconds)
-
tests/test_query_cookie_header_model_extra_params.py
model_config = {"extra": "allow"} @app.get("/query") async def query_model_with_extra(data: Model = Query()): return data @app.get("/header") async def header_model_with_extra(data: Model = Header()): return data @app.get("/cookie") async def cookies_model_with_extra(data: Model = Cookie()): return data def test_query_pass_extra_list(): client = TestClient(app)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0) -
docs_src/security/tutorial005_an_py310.py
) app = FastAPI() def verify_password(plain_password, hashed_password): return password_hash.verify(plain_password, hashed_password) def get_password_hash(password): return password_hash.hash(password) def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def authenticate_user(fake_db, username: str, password: str):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 18:10:35 GMT 2026 - 5.4K bytes - Click Count (0) -
tests/test_dependency_yield_except_httpexception.py
state = initial_state.copy() app = FastAPI() async def get_database(): temp_database = fake_database.copy() try: yield temp_database fake_database.update(temp_database) except HTTPException: state["except"] = True raise finally: state["finally"] = True @app.put("/invalid-user/{user_id}") def put_invalid_user(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 1.9K bytes - Click Count (0) -
tests/test_security_openid_connect_optional.py
oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(oid)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User | None = Depends(get_current_user)): if current_user is None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java
} /** * DFS volume flavor indicating standalone DFS */ public static final int DFS_VOLUME_FLAVOR_STANDALONE = 0x100; /** * DFS volume flavor indicating Active Directory blob storage */ public static final int DFS_VOLUME_FLAVOR_AD_BLOB = 0x200; /** * DFS storage state indicating offline status */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 21.2K bytes - Click Count (0) -
tests/test_required_noneable.py
app = FastAPI() @app.get("/query") def read_query(q: str | None): return q @app.get("/explicit-query") def read_explicit_query(q: str | None = Query()): return q @app.post("/body-embed") def send_body_embed(b: str | None = Body(embed=True)): return b client = TestClient(app) def test_required_nonable_query_invalid(): response = client.get("/query")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0) -
scripts/docs.py
], ) def get_en_config() -> dict[str, Any]: return mkdocs.utils.yaml_load(en_config_path.read_text(encoding="utf-8")) def get_lang_paths() -> list[Path]: return sorted(docs_path.iterdir()) def lang_callback(lang: str | None) -> str | None: if lang is None: return None lang = lang.lower() return lang def complete_existing_lang(incomplete: str):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 17:46:10 GMT 2026 - 25.4K bytes - Click Count (0) -
tests/test_request_params/test_header/test_optional_list.py
# Without aliases @app.get("/optional-list-str") async def read_optional_list_str( p: Annotated[list[str] | None, Header()] = None, ): return {"p": p} class HeaderModelOptionalListStr(BaseModel): p: list[str] | None = None @app.get("/model-optional-list-str") async def read_model_optional_list_str( p: Annotated[HeaderModelOptionalListStr, Header()], ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.6K bytes - Click Count (0) -
.ci/templates.t/pull-request-gradle-unix.yml
description: "Testing of Elasticsearch pull requests - {pr-job}" workspace: "/dev/shm/elastic+elasticsearch+pull-request+{pr-job}" scm: - git: refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*" branches: - "${ghprbActualCommit}" triggers: - github-pull-request: org-list: - elasticCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Jul 01 20:27:05 GMT 2021 - 1.3K bytes - Click Count (0) -
docs/fr/docs/deployment/fastapicloud.md
Cela apporte la même **expérience développeur** que pour créer des applications avec FastAPI au **déploiement** dans le cloud. 🎉 Cela prend également en charge la plupart des éléments nécessaires lors du déploiement d’une application, notamment : * HTTPS * Réplication, avec mise à l’échelle automatique basée sur les requêtes * etc. FastAPI Cloud est le sponsor principal et le financeur des projets open source *FastAPI and friends*. ✨
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 2.3K bytes - Click Count (0)