旧版前端工程文件导入时版本对比查验、审阅与仿真时部分阻挡功能实现;前端参数输入格式统一规范
This commit is contained in:
1 parent
22579e51c9
commit
44b6ea74ab
32 files changed
+2087
-322
No files matched your search
@@ -37,7 +37,9 @@ class AsgiClient:
|
||||
await self.application(scope,receive,send)
|
||||
status = next(m['status'] for m in messages if m['type']=='http.response.start')
|
||||
body = b''.join(m.get('body',b'') for m in messages if m['type']=='http.response.body')
|
||||
return SimpleNamespace(status_code=status,content=body,json=lambda:json.loads(body))
|
||||
response_headers = next(m.get("headers", []) for m in messages if m["type"] == "http.response.start")
|
||||
return SimpleNamespace(status_code=status,content=body,json=lambda:json.loads(body),
|
||||
headers={k.decode():v.decode() for k,v in response_headers})
|
||||
return asyncio.run(run())
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user