You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuex HTTP provider: add HEAD to the allowed methods #158
cue/cuex/providers/http/http.cue allows GET | POST | PUT | DELETE | PATCH | CONNECT | OPTIONS | TRACE, which is every
standard method except HEAD. Do passes the method to http.NewRequestWithContext
unchanged, so only the schema is in the way.
Change
Add "HEAD" to the method enum in cue/cuex/providers/http/http.cue.
Test: a HEAD request through the provider against an httptest.Server, asserting
the method the server saw and that an empty body comes back without error.
Taking this one: #159 adds HEAD to the method enum, a #Head helper for symmetry with the other methods, and a test that runs a HEAD through the CUE package against an httptest.Server — asserting the method the server saw, the 200 status, and the empty body.
Package tests pass locally on go1.27.1 (go test ./cue/cuex/providers/http/), gofmt clean. Happy to trim the scope to just the enum + test, or reshape the test, if you'd prefer.
Activity
marcus-beauregard commentedon Nov 19, 2026
Taking this one: #159 adds
HEADto the method enum, a#Headhelper for symmetry with the other methods, and a test that runs a HEAD through the CUE package against anhttptest.Server— asserting the method the server saw, the 200 status, and the empty body.Package tests pass locally on go1.27.1 (
go test ./cue/cuex/providers/http/), gofmt clean. Happy to trim the scope to just the enum + test, or reshape the test, if you'd prefer.