🐛 fix quart implement

This commit is contained in:
yanyongyu 2021-06-15 10:08:06 +08:00
parent edb7c79acf
commit c76dae584e

View File

@ -149,7 +149,6 @@ class Driver(ReverseDriver):
log_config=LOGGING_CONFIG, log_config=LOGGING_CONFIG,
**kwargs) **kwargs)
@overrides(ReverseDriver)
async def _handle_http(self, adapter: str): async def _handle_http(self, adapter: str):
request: Request = _request request: Request = _request
data: bytes = await request.get_data() # type: ignore data: bytes = await request.get_data() # type: ignore
@ -179,7 +178,6 @@ class Driver(ReverseDriver):
return Response(response and response.body or "", return Response(response and response.body or "",
response and response.status or 200) response and response.status or 200)
@overrides(ReverseDriver)
async def _handle_ws_reverse(self, adapter: str): async def _handle_ws_reverse(self, adapter: str):
websocket: QuartWebSocket = _websocket websocket: QuartWebSocket = _websocket
ws = WebSocket(websocket.http_version, websocket.scheme, ws = WebSocket(websocket.http_version, websocket.scheme,