mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-26 19:59:46 -04:00
🔥 Remove Python 3.9 specific files, no longer needed after updating translations (#14931)
This commit is contained in:
1 parent
ed12105cce
commit
bbb96d4a0a
214 files changed
+28
-3393
No files matched your search
@@ -1,14 +0,0 @@
|
||||
import time
|
||||
|
||||
from fastapi import FastAPI, Request
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.middleware("http")
|
||||
async def add_process_time_header(request: Request, call_next):
|
||||
start_time = time.perf_counter()
|
||||
response = await call_next(request)
|
||||
process_time = time.perf_counter() - start_time
|
||||
response.headers["X-Process-Time"] = str(process_time)
|
||||
return response
|
||||
Reference in new issue
Block a user