Skip to content

Add DELETE/PUT/PATCH convenience methods to Router - #101

Merged
pietbrauer merged 2 commits into
mainfrom
feature/http-method-convenience
May 14, 2026
Merged

pietbrauer merged 2 commits into
mainfrom
feature/http-method-convenience

Conversation

@pietbrauer

Copy link
Copy Markdown
Member

Router defined these HTTP methods but had no execution helpers — callers had to use workarounds via load() or JSONPostRouter.post(). Adds typed delete(), put(), and patch() with both callback and async/await variants, mirroring the existing post() shape.

@pietbrauer
pietbrauer force-pushed the feature/http-method-convenience branch from c9367ea to f9a3fd1 Compare May 14, 2026 12:26
Router defined these HTTP methods but had no execution helpers —
callers had to use workarounds via load() or JSONPostRouter.post().
Adds typed delete(), put<T>(), and patch<T>() with both callback
and async/await variants, mirroring the existing post() shape.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pietbrauer
pietbrauer force-pushed the feature/http-method-convenience branch from f9a3fd1 to 5dc8297 Compare May 14, 2026 13:10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pietbrauer
pietbrauer merged commit 14901bf into main May 14, 2026
7 checks passed
@pietbrauer
pietbrauer deleted the feature/http-method-convenience branch May 14, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant