kobweb icon indicating copy to clipboard operation
kobweb copied to clipboard

Add QUERY HTTP method

Open PeterAttardo opened this issue 4 months ago • 2 comments

RFC 10008 has been finalized: https://datatracker.ietf.org/doc/html/rfc10008 which introduces the new QUERY HTTP method. Adding the ability to make QUERY requests in Kobweb would be useful to support the new standard.

Enable method calls like: window.http.query(resource, req).bodyAs<Res>()

Implementation should be fairly straightforward: add QUERY to the HttpMethod enum, and then add a few helper functions to HTTPFetcher and HTTPFetcherExtensions. I can take a crack at implementing it if that is helpful.

PeterAttardo avatar Aug 03 '26 17:08 PeterAttardo

I believe this is already implemented https://github.com/varabyte/kobweb/commit/05a12cedec5244f04f5570888391b7f4d6fa803c

FlyingPig525 avatar Aug 03 '26 17:08 FlyingPig525

Ah, I must have missed it. Good to know, and I'll close the issue.

PeterAttardo avatar Aug 03 '26 17:08 PeterAttardo