reverse proxy added

added tests for reverse proxy too
This commit is contained in:
Илья Глазунов
2025-12-03 00:05:11 +03:00
parent e2646a752a
commit 5262c5e1fb
7 changed files with 899 additions and 8 deletions
+5 -1
View File
@@ -76,9 +76,13 @@ class PyServeServer:
def _load_extensions(self) -> None:
for ext_config in self.config.extensions:
config = ext_config.config.copy()
if ext_config.type == "routing":
config.setdefault("default_proxy_timeout", self.config.server.proxy_timeout)
self.extension_manager.load_extension(
ext_config.type,
ext_config.config
config
)
def _create_app(self) -> None: