GNServer 0.0.0.0.44__tar.gz → 0.0.0.0.46__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_app.py +3 -4
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_client.py +7 -2
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer.egg-info/PKG-INFO +1 -1
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/PKG-INFO +1 -1
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/setup.py +1 -1
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/__init__.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_cors_resolver.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_crt.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_func_params_validation.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_routes.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer/_template_resolver.py +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer.egg-info/SOURCES.txt +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer.egg-info/dependency_links.txt +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer.egg-info/requires.txt +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/GNServer.egg-info/top_level.txt +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/LICENSE +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/GNServer/mmbConfig.json +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/LICENSE +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/MANIFEST.in +0 -0
- {gnserver-0.0.0.0.44 → gnserver-0.0.0.0.46}/setup.cfg +0 -0
@@ -7,8 +7,7 @@ import asyncio
|
|
7
7
|
import inspect
|
8
8
|
import traceback
|
9
9
|
import datetime
|
10
|
-
from typing import Any, Callable, Dict, List, Optional,
|
11
|
-
from dataclasses import dataclass
|
10
|
+
from typing import Any, Callable, Dict, List, Optional, Tuple, Union, AsyncGenerator
|
12
11
|
from aioquic.asyncio.server import serve
|
13
12
|
from aioquic.asyncio.protocol import QuicConnectionProtocol
|
14
13
|
from aioquic.quic.configuration import QuicConfiguration
|
@@ -208,7 +207,7 @@ class App:
|
|
208
207
|
if r.method != method:
|
209
208
|
continue
|
210
209
|
|
211
|
-
|
210
|
+
resolve_cors(request, r.cors)
|
212
211
|
|
213
212
|
sig = inspect.signature(r.handler)
|
214
213
|
def _ann(name: str):
|
@@ -249,7 +248,7 @@ class App:
|
|
249
248
|
else:
|
250
249
|
result._cors = r.cors
|
251
250
|
|
252
|
-
|
251
|
+
resolve_cors(request, result._cors)
|
253
252
|
|
254
253
|
return result
|
255
254
|
else:
|
@@ -250,8 +250,13 @@ class AsyncClient:
|
|
250
250
|
devLog(request, '1.1.2', 10, 'Request is GNRequest')
|
251
251
|
|
252
252
|
request = await self._resolve_requests_transport(request)
|
253
|
-
|
254
|
-
|
253
|
+
try:
|
254
|
+
c = await self.connect(request, restart_connection, reconnect_wait, keep_alive=keep_alive)
|
255
|
+
except Exception as e:
|
256
|
+
if isinstance(e, GNResponse):
|
257
|
+
return e
|
258
|
+
else:
|
259
|
+
return GNResponse('error')
|
255
260
|
devLog(request, '1.1.3', 10, f'Connected: {c.status}')
|
256
261
|
|
257
262
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|