From 93e0efec28fb752db750c114d70c1517bfa714d2 Mon Sep 17 00:00:00 2001 From: nggit Date: Thu, 1 Oct 2026 19:22:36 +0700 Subject: [PATCH 1/2] rename internal, create_response to accept --- tremolo/lib/http_protocol.py | 2 +- tremolo/lib/http_request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tremolo/lib/http_protocol.py b/tremolo/lib/http_protocol.py index 6824f42e..176cf2e8 100644 --- a/tremolo/lib/http_protocol.py +++ b/tremolo/lib/http_protocol.py @@ -230,7 +230,7 @@ def send_continue(self): self.queue[1].put_nowait(None) async def _handle_request(self, request): - response = request.create_response() + response = request.accept() timer = self.set_handler_timeout(self.options['app_handler_timeout']) try: diff --git a/tremolo/lib/http_request.py b/tremolo/lib/http_request.py index 234cd68a..f5776a6c 100644 --- a/tremolo/lib/http_request.py +++ b/tremolo/lib/http_request.py @@ -115,7 +115,7 @@ def uid(self, length=32, *, ts_offset=0): return prefix + os.urandom(length - len(prefix)) - def create_response(self): + def accept(self): return HTTPResponse(self) def clear(self): From ba590992af60e25de5b1467c85c56b6c386aa536 Mon Sep 17 00:00:00 2001 From: nggit Date: Thu, 1 Oct 2026 19:23:11 +0700 Subject: [PATCH 2/2] release 0.5.3 --- tremolo/tremolo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tremolo/tremolo.py b/tremolo/tremolo.py index d5d78be4..8852572a 100644 --- a/tremolo/tremolo.py +++ b/tremolo/tremolo.py @@ -25,7 +25,7 @@ from .lib.executors import MultiThreadExecutor from .lib.locks import ServerLock -__version__ = '0.5.2' +__version__ = '0.5.3' class Tremolo: