feat: sync latest ARR implementation

This commit is contained in:
Wyndham ARR
2026-07-31 15:11:42 +08:00
parent d6f8a747fa
commit bf7939dd1a
185 changed files with 17527 additions and 2260 deletions

View File

@@ -31,6 +31,15 @@ def handler_for(application: PortalApplication) -> Type[BaseHTTPRequestHandler]:
self._dispatch(b"")
def do_POST(self) -> None: # noqa: N802
self._dispatch_with_body()
def do_PATCH(self) -> None: # noqa: N802
self._dispatch_with_body()
def do_DELETE(self) -> None: # noqa: N802
self._dispatch_with_body()
def _dispatch_with_body(self) -> None:
raw_length = self.headers.get("Content-Length")
if raw_length is None:
self._write(
@@ -60,6 +69,7 @@ def handler_for(application: PortalApplication) -> Type[BaseHTTPRequestHandler]:
self.path,
{key: value for key, value in self.headers.items()},
body,
client_id=str(self.client_address[0]),
)
self._write(response)