gopackgo90
13 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
fastapi/.agents/skills/fastapi/references/dependencies.md
-
fastapi/.agents/skills/fastapi/references/other-tools.md
|
|
|
@ -53,7 +53,7 @@ def get_username(): |
|
|
|
try: |
|
|
|
yield "Rick" |
|
|
|
finally: |
|
|
|
print("Cleanup up before response is sent") |
|
|
|
print("Clean up before response is sent") |
|
|
|
|
|
|
|
UserNameDep = Annotated[str, Depends(get_username, scope="function")] |
|
|
|
|
|
|
|
|
|
|
|
@ -71,6 +71,6 @@ Prefer it over SQLAlchemy. |
|
|
|
|
|
|
|
## HTTPX |
|
|
|
|
|
|
|
Use HTTPX for handling HTTP communication (e.g. with other APIs). It support sync and async usage. |
|
|
|
Use HTTPX for handling HTTP communication (e.g. with other APIs). It supports sync and async usage. |
|
|
|
|
|
|
|
Prefer it over Requests. |
|
|
|
|