This commit is contained in:
he
2026-09-19 15:00:19 +08:00
parent 8d4026bcfc
commit fb5a35b325
37 changed files with 25031 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from fastapi import Response
from datetime import datetime
async def m1(req,next):
if req.client.host in ['192.168.5.14','192.168.5.17','127.0.0.1']:
return Response(content='gun')
r=await next(req)
return r
async def m2(req,next):
a=datetime.now()
r=await next(req)
b=datetime.now()
print(b-a)
return r