- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for HTTPBasic (0.14 sec)
-
docs_src/security/tutorial006.py
from fastapi import Depends, FastAPI from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 321 bytes - Viewed (0)