refactor(remote): send every client call through RemoteClient

This commit is contained in:
imSp4rky
2026-11-24 16:52:44 -07:00
parent 5ab60b8879
commit 3e8c63b067
9 changed files with 485 additions and 73 deletions
+8 -1
View File
@@ -16,7 +16,14 @@ from unshackle.core.api import routes
from unshackle.core.api.handlers import SESSION_TRANSPORT_KEYS
ROUTE_NAMES = {name for name in vars(protocol) if name.endswith("_ROUTE")}
CLIENT_METHODS = {"get": "GET", "get_optional": "GET", "post": "POST", "post_optional": "POST", "delete": "DELETE"}
CLIENT_METHODS = {
"get": "GET",
"get_optional": "GET",
"probe": "GET",
"post": "POST",
"post_optional": "POST",
"delete": "DELETE",
}
SERVED = {(method, path): handler for method, path, handler, _ in routes.ROUTES}