diff --git a/ahserver/__pycache__/__init__.cpython-310.pyc b/ahserver/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..f18ee77 Binary files /dev/null and b/ahserver/__pycache__/__init__.cpython-310.pyc differ diff --git a/ahserver/__pycache__/auth_api.cpython-310.pyc b/ahserver/__pycache__/auth_api.cpython-310.pyc new file mode 100644 index 0000000..869930e Binary files /dev/null and b/ahserver/__pycache__/auth_api.cpython-310.pyc differ diff --git a/ahserver/__pycache__/baseProcessor.cpython-310.pyc b/ahserver/__pycache__/baseProcessor.cpython-310.pyc new file mode 100644 index 0000000..ddad894 Binary files /dev/null and b/ahserver/__pycache__/baseProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/configuredServer.cpython-310.pyc b/ahserver/__pycache__/configuredServer.cpython-310.pyc new file mode 100644 index 0000000..d11c27e Binary files /dev/null and b/ahserver/__pycache__/configuredServer.cpython-310.pyc differ diff --git a/ahserver/__pycache__/dsProcessor.cpython-310.pyc b/ahserver/__pycache__/dsProcessor.cpython-310.pyc new file mode 100644 index 0000000..2f91a49 Binary files /dev/null and b/ahserver/__pycache__/dsProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/error.cpython-310.pyc b/ahserver/__pycache__/error.cpython-310.pyc new file mode 100644 index 0000000..4ae6e14 Binary files /dev/null and b/ahserver/__pycache__/error.cpython-310.pyc differ diff --git a/ahserver/__pycache__/filedownload.cpython-310.pyc b/ahserver/__pycache__/filedownload.cpython-310.pyc new file mode 100644 index 0000000..549893c Binary files /dev/null and b/ahserver/__pycache__/filedownload.cpython-310.pyc differ diff --git a/ahserver/__pycache__/filestorage.cpython-310.pyc b/ahserver/__pycache__/filestorage.cpython-310.pyc new file mode 100644 index 0000000..b137df8 Binary files /dev/null and b/ahserver/__pycache__/filestorage.cpython-310.pyc differ diff --git a/ahserver/__pycache__/filetest.cpython-310.pyc b/ahserver/__pycache__/filetest.cpython-310.pyc new file mode 100644 index 0000000..e9d9c69 Binary files /dev/null and b/ahserver/__pycache__/filetest.cpython-310.pyc differ diff --git a/ahserver/__pycache__/functionProcessor.cpython-310.pyc b/ahserver/__pycache__/functionProcessor.cpython-310.pyc new file mode 100644 index 0000000..c9f982e Binary files /dev/null and b/ahserver/__pycache__/functionProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/globalEnv.cpython-310.pyc b/ahserver/__pycache__/globalEnv.cpython-310.pyc new file mode 100644 index 0000000..8021fcb Binary files /dev/null and b/ahserver/__pycache__/globalEnv.cpython-310.pyc differ diff --git a/ahserver/__pycache__/llmProcessor.cpython-310.pyc b/ahserver/__pycache__/llmProcessor.cpython-310.pyc new file mode 100644 index 0000000..2a36122 Binary files /dev/null and b/ahserver/__pycache__/llmProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/llm_client.cpython-310.pyc b/ahserver/__pycache__/llm_client.cpython-310.pyc new file mode 100644 index 0000000..108e39a Binary files /dev/null and b/ahserver/__pycache__/llm_client.cpython-310.pyc differ diff --git a/ahserver/__pycache__/loadplugins.cpython-310.pyc b/ahserver/__pycache__/loadplugins.cpython-310.pyc new file mode 100644 index 0000000..dfcfe7f Binary files /dev/null and b/ahserver/__pycache__/loadplugins.cpython-310.pyc differ diff --git a/ahserver/__pycache__/myTE.cpython-310.pyc b/ahserver/__pycache__/myTE.cpython-310.pyc new file mode 100644 index 0000000..d4ce8ae Binary files /dev/null and b/ahserver/__pycache__/myTE.cpython-310.pyc differ diff --git a/ahserver/__pycache__/processorResource.cpython-310.pyc b/ahserver/__pycache__/processorResource.cpython-310.pyc new file mode 100644 index 0000000..a34188a Binary files /dev/null and b/ahserver/__pycache__/processorResource.cpython-310.pyc differ diff --git a/ahserver/__pycache__/proxyProcessor.cpython-310.pyc b/ahserver/__pycache__/proxyProcessor.cpython-310.pyc new file mode 100644 index 0000000..280db82 Binary files /dev/null and b/ahserver/__pycache__/proxyProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/real_ip.cpython-310.pyc b/ahserver/__pycache__/real_ip.cpython-310.pyc new file mode 100644 index 0000000..9793199 Binary files /dev/null and b/ahserver/__pycache__/real_ip.cpython-310.pyc differ diff --git a/ahserver/__pycache__/restful.cpython-310.pyc b/ahserver/__pycache__/restful.cpython-310.pyc new file mode 100644 index 0000000..800d97f Binary files /dev/null and b/ahserver/__pycache__/restful.cpython-310.pyc differ diff --git a/ahserver/__pycache__/serverenv.cpython-310.pyc b/ahserver/__pycache__/serverenv.cpython-310.pyc new file mode 100644 index 0000000..4086171 Binary files /dev/null and b/ahserver/__pycache__/serverenv.cpython-310.pyc differ diff --git a/ahserver/__pycache__/sqldsProcessor.cpython-310.pyc b/ahserver/__pycache__/sqldsProcessor.cpython-310.pyc new file mode 100644 index 0000000..09b6ff8 Binary files /dev/null and b/ahserver/__pycache__/sqldsProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/uriop.cpython-310.pyc b/ahserver/__pycache__/uriop.cpython-310.pyc new file mode 100644 index 0000000..8a14b88 Binary files /dev/null and b/ahserver/__pycache__/uriop.cpython-310.pyc differ diff --git a/ahserver/__pycache__/url2file.cpython-310.pyc b/ahserver/__pycache__/url2file.cpython-310.pyc new file mode 100644 index 0000000..eac0ec7 Binary files /dev/null and b/ahserver/__pycache__/url2file.cpython-310.pyc differ diff --git a/ahserver/__pycache__/utils.cpython-310.pyc b/ahserver/__pycache__/utils.cpython-310.pyc new file mode 100644 index 0000000..74e5bda Binary files /dev/null and b/ahserver/__pycache__/utils.cpython-310.pyc differ diff --git a/ahserver/__pycache__/websocketProcessor.cpython-310.pyc b/ahserver/__pycache__/websocketProcessor.cpython-310.pyc new file mode 100644 index 0000000..afe5936 Binary files /dev/null and b/ahserver/__pycache__/websocketProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/xlsxData.cpython-310.pyc b/ahserver/__pycache__/xlsxData.cpython-310.pyc new file mode 100644 index 0000000..64fc0e1 Binary files /dev/null and b/ahserver/__pycache__/xlsxData.cpython-310.pyc differ diff --git a/ahserver/__pycache__/xlsxdsProcessor.cpython-310.pyc b/ahserver/__pycache__/xlsxdsProcessor.cpython-310.pyc new file mode 100644 index 0000000..45ea54b Binary files /dev/null and b/ahserver/__pycache__/xlsxdsProcessor.cpython-310.pyc differ diff --git a/ahserver/__pycache__/xtermProcessor.cpython-310.pyc b/ahserver/__pycache__/xtermProcessor.cpython-310.pyc new file mode 100644 index 0000000..298a943 Binary files /dev/null and b/ahserver/__pycache__/xtermProcessor.cpython-310.pyc differ diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 65da535..8a042e8 100644 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -163,7 +163,6 @@ class AuthAPI: @web.middleware async def checkAuth(self,request, handler): - info(f'checkAuth() called ... {request.path=}, {request.method}, {type(handler)}') t1 = time.time() path = request.path userinfo = await get_session_userinfo(request) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 9e9a7bf..b699297 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -202,6 +202,15 @@ class ProcessorResource(StaticResource,Url2File): async def _handle(self,request:Request) -> StreamResponse: + # Fast path for static assets: skip auth closures, i18n, url2processor, isHtml + static_exts = ('.js', '.css', '.png', '.jpg', '.jpeg', '.gif', '.ico', + '.svg', '.woff', '.woff2', '.ttf', '.eot', '.map', + '.webp', '.bmp', '.mp3', '.mp4', '.webm', '.ogg', '.wav') + path_lower = request.path.lower() + if any(path_lower.endswith(ext) for ext in static_exts): + self.parse_request(request) + return await super()._handle(request) + clientkeys = { "iPhone":"iphone", "iPad":"ipad",